Regexp Flashcards
1
Q
a or b
A
a|b
2
Q
Insert entire match
A
$&
3
Q
The character a
A
a
4
Q
Null character
A
\0
5
Q
One non-whitespace
A
\S
6
Q
Tab
A
\t
7
Q
Hexadecimal character YY
A
\xYY
8
Q
Ignore case
A
i
9
Q
End of string
A
$
10
Q
Insert Y’th captured group
A
$Y
11
Q
Positive lookahead
A
(?=…)
12
Q
One whitespace
A
\s
13
Q
Word boundary
A
\b
14
Q
Start of string
A
15
Q
One word character
A
\w
16
Q
One character except: a, b, c, d
A
[^ab-d]
17
Q
Non-capturing group
A
(?:…)
18
Q
One non-word character
A
\W