29. Metacharacters - Word Boundaries
- Word boundaries are another commonly provided metasequence.
- egrep, vi and GNU Emacs provide:
\<
\>
for the start and end of words, respectively.
- Perl and GNU Emacs provide:
\b
\B
for word boundaries and non-word boundaries, respectively.
- These are like ^ and $ in a way, in that they are also not matching a specific
character, but rather a position.
|