regex Flashcards
1
Q
Digit
regex
2 alternatives
A
\d
2
Q
a or b
regex
A
(a|b)
3
Q
Group
regex
A
(...)
4
Q
Range (a or b or c)
regex
A
[abc]
5
Q
Not (a or b or c)
A
[^abc]
6
Q
Lower case letter from a to q
A
[a-q]
7
Q
Upper case letter from A to Q
A
[A-Q]
8
Q
Digit from 0 to 7
A
[0-7]
9
Q
Look-ahead assertions
A
?=
10
Q
Negative look-ahead
A
?!
11
Q
Look-behind assertion
A
?<=
12
Q
Negative look-behind
A
?!=
?<!
13
Q
Any character except new line
A
.
14
Q
0 or more
A
*
15
Q
1 or more
A
+