ipulse2
asked on
regex
hi
Im trying to match the regular expression " " (DOUBLEQUOTE SPACE DOUBLEQUOTE)
would it be ...
\"([\ ])\"
...?
thanks
Im trying to match the regular expression " " (DOUBLEQUOTE SPACE DOUBLEQUOTE)
would it be ...
\"([\ ])\"
...?
thanks
actually just:
String pattern = "\" \"";
String pattern = "\" \"";
ASKER
im trying to match it in jflex but it doesnt like it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Exception in thread "main" java.lang.Error: Error: could not match input
at grammar.Yylex.yy_scanError (Yylex.jav a: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
at grammar.Yylex.yy_scanError
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
String pattern = "\"\ \"";