You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make use of Matcher.quoteReplacement(). This method escapes all special regex characters in the replacement string, so they are treated as normal characters.
The Matcher.quoteReplacement() method specifically escapes the $ and , which have special meaning in replacement strings:
$ is usually used for group references
. is used for escaping
With this fix, we should solve problems with ugly text strings in xml
The text was updated successfully, but these errors were encountered:
We should make use of Matcher.quoteReplacement(). This method escapes all special regex characters in the replacement string, so they are treated as normal characters.
The Matcher.quoteReplacement() method specifically escapes the $ and , which have special meaning in replacement strings:
With this fix, we should solve problems with ugly text strings in xml
The text was updated successfully, but these errors were encountered: