Hello Michael and Vawter, Thank you very much for your will to help.
I found out already, it was quite simple problem :-( my thesaurus is a file having the columns: <pattern><separator><replacement> the separator I was using with StringTokenizer was precisely forward slash (/) the rest you can easily figure out :-) nothing to do with regex. Thank you again, Best Regards, Giovanni > -----Original Message----- > From: Michael McCallum [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 25, 2004 1:52 AM > To: Regexp Users List > Subject: Re: how to escape forward slash? > > > Hi, > The problem will be that whatever is parsing your thesaurus > (text file) is not > escaping the / so it only passes " C\" to regexp rather than > " C/O / " as you > desired. Hence the string is terminated with an escape, which > is invalid. > > kind regards > > Michael > > On Thu, 11 Nov 2004 04:50, Giovanni Azua wrote: > | 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 > | > | > --------------------------------------------------------------------- > | To unsubscribe, e-mail: [EMAIL PROTECTED] > | For additional commands, e-mail: > [EMAIL PROTECTED] > > -- > Michael McCallum > Software Engineering Manager > SnapHire Inc > land: +64.9.308.0329 > cell: +64.21.576.907 > http://www.SnapHire.com/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]