You might need a double backslash, since the string \(1\+1\) represented in Java is "\\(1\\+1\\)" (see the javadocs for java.util.regex.Pattern for a better explanation).
On 5/9/05, Kipping, Peter <[EMAIL PROTECTED]> wrote: > The documentation tells us to escape special characters by using the \ > > Example: > > \(1\+1\) > > However if we put this in a string > > String query = "\(1\+1\)"; > > Then the java compiler throws an Invalid Escape Sequence error. > QueryParser doesn't seem to recognize the double backslash. Is there a > workaround for this? > > Thanks, > Peter > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]