P
Peebster_99
I would like to use String.replaceAll() in order to replace substrings
that equal: "value { { {" with this string: "value { {".
When attempting to invoke replaceAll as follows:
String s = ("value[\\s]{\\s");
output.replaceAll(s ,"value { {");
The following error result below produced at runtime. Using \\s for
whitespace yields similar results. Can someone point out to me what
I'm doing wrong here?
Thanks,
java.util.regex.PatternSyntaxException: Illegal repetition near index
5
value { { {
^
java.util.regex.PatternSyntaxException: Illegal repetition near index
5
value { { {
^
that equal: "value { { {" with this string: "value { {".
When attempting to invoke replaceAll as follows:
String s = ("value[\\s]{\\s");
output.replaceAll(s ,"value { {");
The following error result below produced at runtime. Using \\s for
whitespace yields similar results. Can someone point out to me what
I'm doing wrong here?
Thanks,
java.util.regex.PatternSyntaxException: Illegal repetition near index
5
value { { {
^
java.util.regex.PatternSyntaxException: Illegal repetition near index
5
value { { {
^