Reverse - Special characters and character classes Flashcards
Matches any single character except the newline character.
.
The bracket expression.
[…]
The negated bracket expression.
[^…]
Word character Equivalent to [A-Za-z0-9_]
\w
Non-word characterEquivalent to [^A-Za-Non-word characterEquivalent to [^A-Za-z0-9_]
\W
Digit characterEquivalent to [0-9]
\d
Non-digit characterEquivalent to [^0-9]
\D
Whitespace characterEquivalent to [\f\n\r\t\v\u00A0\u2028\u2029] (\u00A0 means “no-break space”, \u2028 means “line separator”, \u2029 means “paragraph separator”)
\s
Non-whitespace characterEquivalent to [^\f\n\r\t\v\u00A0\u2028\u2029]
\S
Word Boundary
Backspace (\x08)
\b
Form-feed (\x0C)
\f
Linefeed or newline (\x0A)
\n
Carriage return (\x0D)
\r
Tab (\x09)
\t
Vertical tab (\x0B)
\v