A word boundary
\bMatches, without consuming any characters, immediately between a character matched by \w and a character not matched by \w (in either order).
Examples
Match Sample:
word boundaries are odd
Regex Example:
d\b
JAVASCRIPT PYTHON PCRE
Share & Embed
Use this snippet to display this token on your own site.
<!-- Embed Regex Token: \b --> <code class="regex-token">\b</code> - A word boundary <small><a href="https://testregex.com/cheatsheet/a-word-boundary">See details</a></small>