1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2026-04-24 03:38:00 +02:00
Files
Waldir Pimenta 4519153e5e doc: clarify half-boundary syntax for the -w/--word-regexp flag
In regex 1.10.0, the \b{start-half} and \b{end-half} assertions were
introduced to improve how the -w/--word-regexp flag handles patterns
containing non-word characters. While ripgrep's CLI help text was
updated to mention this syntax during the lexopt transition (082245d),
it omitted the rationale, potentially leaving users puzzled by this
casual mention of a highly specific, non-standard regex feature.

Furthermore, GUIDE.md was still outdated, incorrectly claiming
that -w wraps patterns in standard \b boundaries,
further compounding the inconsistency and potential for confusion.

This commit updates GUIDE.md to reflect the actual underlying regex
employed by ripgrep when the -w/--word-regexp flag is used.
It also adds a brief explanation to both the guide and the manpage
acknowledging the non-standard nature of these half-boundary markers,
and explaining what they're meant for.

PR #3279
2026-02-27 11:25:19 -05:00
..
2025-10-22 08:24:51 -04:00
2025-10-22 08:23:57 -04:00
2025-10-22 08:28:53 -04:00
2025-10-15 22:59:35 -04:00
2025-10-15 23:01:07 -04:00
2025-10-22 08:28:06 -04:00
2025-10-15 23:00:22 -04:00
2025-10-22 08:25:01 -04:00