Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> jakarta regexp: how to escape forward slash?

jakarta regexp: how to escape forward slash?

From: Giovanni Azua <bravegag_at_hotmail.com>
Date: Wed, 10 Nov 2004 16:37:16 +0100
Message-ID: <2ver6tF2k5ah4U1@uni-berlin.de>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US