Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> jakarta regexp: how to escape forward slash?
Hello all,
Does anyone know how to escape forward
slash using jakarta regexp, the funny
thing is that sed understand well the
escaping of forward slash: \/ but regexp
does not.
e.g. when providing the pattern:
/ C\/O / /
I get the following error:
org.apache.regexp.RESyntaxException: Syntax error: Escape terminates string
...
PATTERN ERROR in line: / C\/O / /
Thanks in advance,
Best Regards,
Giovanni
Received on Wed Nov 10 2004 - 09:37:16 CST