Removing literal character in regex

I have the following string

\Qpipe,name=office1\E

And I am using a simplified regex library that doesn't support the \Q and \E.

I tried removing them

 s.replaceAll("\\Q", "").replaceAll("\\E", "")

However, I get the error Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 1 \E ^

Any ideas?

5
задан codaddict 15 March 2011 в 15:47
поделиться