google / google/re2j

\b does not behave like it does with java.util.regex.Pattern

Open
#116 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.3k
Forks
165
PR merge metrics
No merged PRs in 30d

Description

Word boundaries should use \p{L} not just A-Za-z to behave like the default regex in java. Added some tests showing the issue and fixed it in this PR : https://github.com/google/re2j/pull/100 . (but I had to disable a large unit-test I don't know how to adapt to support this change)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.