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.