regex

hi

Im trying to match the regular expression " " (DOUBLEQUOTE SPACE DOUBLEQUOTE)
would it be ...
\"([\ ])\"
 ...?

thanks
LVL 1
ipulse2Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
objectsConnect With a Mentor Commented:
what exactly doesn't it like?
0
 
objectsCommented:
try:
String pattern = "\"\ \"";
0
 
objectsCommented:
actually just:
String pattern = "\" \"";
0
 
ipulse2Author Commented:
im trying to match it in jflex but it doesnt like it
0
 
ipulse2Author Commented:
Exception in thread "main" java.lang.Error: Error: could not match input
at grammar.Yylex.yy_scanError(Yylex.java:442)

where its declared as ...
STRCST                  = \"(%[a-z])(%.)*\"|\" \"

Also tried matching it directly ...
      "\" \""                  { return token(sym.STRINGCONST); }

it matches the other string constants i need like "%n" etc
0
All Courses

From novice to tech pro — start learning today.