Regular expressions pcre2 · Characters and anchors
Match digits
Match one or more digits. Use \D for anything that is not a digit.
\d+
Official Regular expressions pcre2 documentation
More characters and anchors commands
- Match word characters
- Match whitespace
- 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