Regex Flashcards
1
Q
PCRE
A
Perl Compat. Regular Expression
2
Q
[a-c]
A
Match a range from a to c
3
Q
\w
A
Matches all letters, numbers, and underscore [A-Za-z0-9_]
4
Q
a{3}
A
Match exactly three a’s
5
Q
a{1,3}
A
Match exactly 1-3 a’s
6
Q
[wxy]{5}
A
Five characters which can be w, x, or y
7
Q
.{2,6}
A
2-6 of anything
8
Q
*
A
0 or more of a character
9
Q
+
A
1 or more of a character
10
Q
[abc]+
A
1 or more a, b, or c
11
Q
?
A
Preceding character is optional
12
Q
A
Match “starts with”
13
Q
$
A
Matches “ends with”
14
Q
|
A
Or