ReplaceAll error: java.util.regex.PatternSyntaxException: Illegal repetition near index 0 {

1
I am tring to parse some strings and am manipulating some parts of these strings. One part of this manipulation is to change {1} to %1%. However whenever I use the { symbol in my replaceAll/First i get the illegal repetition error. I've looked around stackoverflow and the suggestion is to escape the {. I have tried the following but to no avail: replaceAll($Versions/String, '''{''','%') replaceAll($Versions/String, '{','%') replaceAll($Versions/String, '\\{\','%') Any suggestions on how to escape this part (or any other way I can change this string)
asked
0 answers