Skip to content

docs: clarify regex-lite word boundaries#1363

Merged
BurntSushi merged 1 commit into
rust-lang:masterfrom
marko1olo:docs-regex-lite-word-boundary
Jun 6, 2026
Merged

docs: clarify regex-lite word boundaries#1363
BurntSushi merged 1 commit into
rust-lang:masterfrom
marko1olo:docs-regex-lite-word-boundary

Conversation

@marko1olo

Copy link
Copy Markdown
Contributor

Fixes #1356.

This clarifies in the regex-lite differences section that word boundary assertions such as \b and \B are ASCII-only because they are defined in terms of \w and \W.

Validation:

  • git show --check --oneline HEAD
  • static search for the existing ASCII word boundary syntax table

Not run locally:

  • cargo test -p regex-lite

Reason: this Windows environment does not currently have cargo on PATH. The change is documentation-only and limited to regex-lite/src/lib.rs.

AI-assisted contribution: implemented with OpenAI Codex and reviewed locally before submission.

@BurntSushi BurntSushi force-pushed the docs-regex-lite-word-boundary branch from c95fdbf to 7e8aced Compare June 6, 2026 12:55
@BurntSushi BurntSushi merged commit a7f2ff6 into rust-lang:master Jun 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regex and regex_lite disagree on \b behavior on Unicode accent character

2 participants