Regex Shortcuts

Shortcut Meaning Language
\s Whitespace characters (\t, \v, \r, \n, \f)
\S Non-whitespace characters
\d Any decimal digit (0-9)
\D Any character but a decimal digit
\h Any hexadecimal digit (0-9, A-F, a-f) Ruby
\H Any character but a hexadecimal digit Ruby
\w Word characters (A-Z, a-z, 0-9, _)
\W Non-word characters
#programming/regex