Skip to main content

Special Sequence Characters

Pre-defined Characters

CharacterDescriptionEquivalent
\wWord characters (letters, digits, underscore)[a-zA-Z0-9_]
\WNOT word characters[^a-zA-Z0-9_]
\dDigits[0-9]
\DNOT digits[^0-9]
\sWhitespace characters[ \t\n\r\f\v]
\SNOT whitespace characters[^ \t\n\r\f\v]