Regular Expressions Flashcards
1
Q
\b
A
Match a word boundary
2
Q
\w
A
Match a word character [A-Za-z_]
3
Q
\W
A
Match a non-word character
4
Q
.
A
Match any character
5
Q
x*
A
Match zero or more occurrences of x
6
Q
x+
A
Match one or more occurrences of x
7
Q
x?
A
Match zero or one occurrences of x
8
Q
\d
A
Match a digit character [0-9]
9
Q
\D
A
Match a non-digit character
10
Q
\s
A
Match a whitespace character
11
Q
(x)
A
Create a match group on x
12
Q
[x]
A
Create a character class containing x
13
Q
[^x]
A
Create a character class excluding x
14
Q
x{n}
A
Match x exactly n times
15
Q
x{n, m}
A
Match x between n and m times