Meta Characters Flashcards
1
Q
Any Digit 0-9
A
\d
2
Q
Any word Character
A-Z
a-z
0-9
A
\w
3
Q
Any White Space
A
\s
Space
Tab
4
Q
Matches any character
A
.
5
Q
Non-white space
A
\S
6
Q
Anything not a word character
A
\W
7
Q
Quantifiers
A
meta characters that modify the previous character in the regex to say how many of those things you want to match in a row.
8
Q
Quantifiers Match ("0" zero or more) of the preceding meta character
A
*
9
Q
Quantifiers Match (one or more) of the preceding meta character
A
+
10
Q
Quantifiers
Match “0” zero or one of the preceding meta character
A
?
11
Q
Quantifiers
Match “n” number of the preceding meta character
A
{n}
12
Q
Quantifiers
{min,max}
A
Match “min,max” number of the preceding meta character
13
Q
I want to find all 5 letter words in my text.
A
\w{5}
14
Q
Positions
The beginning of a line
A
15
Q
Positions
The end of a line
A
$