Regex Metacharacters
- author:: Nathan Acks
- date:: 2021-09-21
Important “Metacharacters”
\d
-[0-9]
\D
-[^0-9]
\w
-[0-9a-zA-Z_]
\W
-[^0-9a-zA-Z_]
\s
- Whitespace characters (including line breaks)\S
- Non-whitespace characters
NOTE: Be aware that \w
includes _
(but not -
)!