re1: add unicode-aware \b
Open
enhancement
- Dominant language
- Go
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
`\b` in pcre and friends means "word boundary". Word boundary matching is useful (in particular for writing syntax highlighter tokenizers).
According to regexp/syntax and re2 docs, pcre uses `[a-zA-Z0-9_]` for word boundaries. re1 should be unicode-aware and instead use `unicode.IsLetter||unicode.IsNumber||_` (Go identifier syntax, basically).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.