eaburns / eaburns/T

re1: add unicode-aware \b

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.