Regex Quiz
30 questions. Instant scoring. Nothing leaves your browser.
Ready to test your regex knowledge?
30 questions covering anchors, character classes, quantifiers, groups, lookaround, flags, and performance. Scored instantly, nothing leaves your browser.
About the Regular Expressions Quiz
Assess your mastery of regex concepts from simple literal matching up to complex backtrack debugging and performance tuning.
Key Concepts Tested:
- Literals & Character Classes: Basic alphanumeric character sets, negation rules, and shorthand notation filters (such as
\d,\w, and\s). - Anchors & Boundaries: Pinning matches to starting points (
^,\A), endpoints ($,\z), and word transitions (\b). - Quantifiers: Managing matches for optional characters (
?), zero-or-more occurrences (*), or explicit repetitions ({n,m}). - Lookaround Assertions: Validating matches based on what surrounds them using positive and negative lookaheads (
(?=...),(?!...)) and lookbehinds ((?<=...),(?<!...)). - Performance & Optimization: Spotting and correcting catastrophic backtracking in complex search patterns.
Need a refresher before starting? Read through our step-by-step Learn Regex course, reference the regex cheat sheet, or try the concepts hands-on in the regex tester.
Keep Going
Regex Tester
Test a regular expression against sample text and see every match highlighted live.
Regex Generator
Build a pattern by clicking blocks — no syntax memorisation required.
Regular Expressions Guide
What regex is, how the syntax works, and the mistakes that trip people up.
Regex Cheat Sheet
Every token, quantifier, and assertion on one printable page.
Python Regex Guide
The re module end to end — search, match, findall, groups, and substitution.
Regex Pattern Library
100+ ready-to-use patterns for email, URLs, dates, IPs, and more.