CS Fundamentals: Regular Expressions
Test your knowledge of regular expressions — the compact, powerful pattern-matching syntax used for validating and extracting text.
Questions cover character classes, quantifiers, anchors, and common patterns like matching emails or phone numbers.
Regex is famously easy to write and hard to read back later — see how fluently you can decode a pattern.
Start quiz →
Opens in a new tab on Cletica
Sample questions3 of 14 shown
Q1
What does the metacharacter '.' match in a regular expression?
Q2
Which quantifier means 'zero or more occurrences'?
Q3
Which of the following are valid character class patterns? (Select all that apply)
What This Quiz Covers
- Character classes and ranges
- Quantifiers: *, +, ?, {n,m}
- Anchors: ^ and $
- Capturing groups
- Greedy vs. lazy matching
- Common patterns: emails, digits, whitespace
Cletica
Want to create your own quiz?
Build surveys and quizzes, share with anyone, collect responses — free to start.
Try Cletica for free →