Regular expressions pcre2 · Characters and anchors
Match whitespace
Match spaces, tabs and line breaks. Use \S for the opposite.
\s+
Official Regular expressions pcre2 documentation
More characters and anchors commands
- Match digits
- Match word characters
- Match any character
- Match one of several characters
- Match anything except some characters
- Match the whole line
All characters and anchors commands · Regular expressions pcre2 cheatsheet