Regular expressions pcre2 · Characters and anchors

Match word characters

Match letters, digits and underscore. Use \W for the opposite.

\w+

Official Regular expressions pcre2 documentation

More characters and anchors commands

All characters and anchors commands · Regular expressions pcre2 cheatsheet

Was this page helpful?