-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Regex don't allow matching non-word chars #249
Labels
Comments
I a aware of this, but the benefits are bigger than the drawbacks. For now, it will stay like this until I find a better solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i want to anonymize javadoc @author with a regex, but my regex
@author .*
fails to replace them. example:as i can see in source code, all terms are wrapped in
\b
tags, which fail to capture the@
character.my workaround was to use
author \w.*
instead, which works well enough, but might match in places where it shouldn't.proposed fix: don't wrap a regex in \b if it begins/ends in non-word characters?
The text was updated successfully, but these errors were encountered: