Regex Special Characters Flashcards
1
Q
.
A
Any character /./
2
Q
\s
A
White space character
3
Q
\S
A
Non white space character
4
Q
\d
A
Any decimal digit (0-9)
5
Q
\D
A
Any character but a decimal digit
6
Q
\h
A
Any hexadecimal digit (0-9, A-F, a, f)
7
Q
\H
A
Any character but a hexadecimal digit
8
Q
\w
A
Word characters. Include all alphabetical characters (a-z, A-Z), decimals (0-9) and ( _ )
9
Q
\W
A
Word characters. Anything that isn’t an alphabetical character (a-z, A-Z), decimals (0-9) and ( _ )