Regular Expressions Flashcards
1
Q
\d
regex metacharacter
A
Matches any decimal digit.
[0-9]
2
Q
\D
regex metacharacter
A
Matches any non-digit character.
[^0-9]
3
Q
\s
regex metacharacter
A
Matches any whitespace character.
[ \t\n\r\f\v]
4
Q
\S
regex metacharacter
A
Matches any non-whitespace character; this is equivalent to the class [^ \t\n\r\f\v].
5
Q
\w
regex metacharacter
A
Matches any alphanumeric character; this is equivalent to the class [a-zA-Z0-9_].
6
Q
\W
regex metacharacter
A
Matches any non-alphanumeric character; this is equivalent to the class [^a-zA-Z0-9_].