-
What three things are found in a regular expression?
ordinary characters, meta-characters, character classes
-
What do ordinary characters in a regular expression match?
they match themselves
-
What does the . (dot) in a regular expression match?
one occurrence of any character, except the newline
-
What does the * in a regular expression match?
0 or more occurrences of the character that comes before it
-
What does the + in a regular expression match?
1 or more occurrences of the character that comes before it
-
What does the ? in a regular expression match?
0 or 1 occurrences of the character that comes before it
-
What does the \ do in a regular expression?
turns off the special meaning of the character that comes after it
-
What does \d in a regular expression match?
a single digit
-
What does \w in a regular expression match?
a single occurrence of a letter, a digit or an underscore
-
What does \s in a regular expression match?
a single occurrence of a whitespace character