doc: clarify half-boundary syntax for the `-w/--word-regexp` flag
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+11 added−3 removed
- other:+11 added−3 removed