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?