1 / 5
What does the anchor ^ match?
-
-
-
-
The ^ anchor matches the start of the string (or line in multiline mode); $ matches the end.
2 / 5
What does the quantifier + mean?
-
-
-
-
The + quantifier matches one or more of the preceding element; * matches zero or more and ? matches zero or one.
3 / 5
What do parentheses ( ) create in a regex?
-
-
-
-
Parentheses form a capturing group, grouping tokens and capturing the matched text for backreferences or extraction.
4 / 5
What does the character class [a-z] match?
-
-
-
-
A character class like [a-z] matches a single character within the specified range.
5 / 5
What does a positive lookahead (?=...) do?
-
-
-
-
A positive lookahead (?=...) asserts that the following text matches a pattern without including it in the match.