Regular expressions pcre2 · Characters and anchors
Match a whole word
Match cat but not category or concat.
\bcat\b
Official Regular expressions pcre2 documentation
More characters and anchors commands
- Match digits
- Match word characters
- Match whitespace
- Match any character
- Match one of several characters
- Match anything except some characters
All characters and anchors commands · Regular expressions pcre2 cheatsheet