Match a transition between word and non-word characters.
Section: Anchors and Boundaries
Word boundary
regex
regex
\bExplanation
Common for matching whole words like `\berror\b`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Anchors and Boundaries
Absolute start anchor
Match only at the absolute start of the entire string.
Absolute end anchor
Match only at the absolute end of the entire string.