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]