Regular Expressions Flashcards

1
Q

\d

regex metacharacter

A

Matches any decimal digit.

[0-9]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

\D

regex metacharacter

A

Matches any non-digit character.

[^0-9]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

\s

regex metacharacter

A

Matches any whitespace character.

[ \t\n\r\f\v]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

\S

regex metacharacter

A

Matches any non-whitespace character; this is equivalent to the class [^ \t\n\r\f\v].

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

\w

regex metacharacter

A

Matches any alphanumeric character; this is equivalent to the class [a-zA-Z0-9_].

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

\W

regex metacharacter

A

Matches any non-alphanumeric character; this is equivalent to the class [^a-zA-Z0-9_].

How well did you know this?
1
Not at all
2
3
4
5
Perfectly