New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaped characters get "un-escaped" when using Matcher.appendReplacement #18
Comments
Thanks for the report. I'll take a look as soon as I can. |
Thank you very much! |
After some investigation, this seems to also be a problem with regular Matcher class and is resolved using the Matcher.quoteReplacement method. Here's the fixed code example from above:
This prints "1\s2\s3\s4\s5\s" as expected. So, maybe to resolve this issue, all that is needed is to expose the static Matcher.quoteReplacement method in the Matcher class? |
|
I don't know whether this is still maintained, but there's a bug when using the Matcher.appendReplacement that removes escaping of characters like "\s". Here's a code example:
This should print "1\s2\s3\s4\s5\s" but prints "1s2s3s4s5s".
The text was updated successfully, but these errors were encountered: