thumbnail

Regular Expressions Quiz

For each regular expression, type text that the regex would match.
Quiz by
ChameleonPie
Rate:
Last updated: March 26, 2026
You have not attempted this quiz yet.
First submittedMarch 26, 2026
Times taken5
Average score92.9%
Report this quizReport
4:00
Enter answer here
0
 / 14 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
Hint
Answer
^a+b$
ab | aab | aaab
^(bed | deb)$
bed | deb
^coz*y$
coy | cozy | cozzy | cozzzy
my .* pony
my little pony
^[^a-d][^b-m][^x-z][^s-w][^c-j]$
zaaaa
^star (wars | trek)$
star wars | star trek
^b[aeiou]t$
bat | bet | bit | bot | but
^br?[ao][ck][eo]n$
bacon | broken
^the(ir|y?re)$
their | they're | there
^anyone but [^me]+$
anyone but you
^[0-9]+[0-9]$
12
^(F|PH)IN[AEUO]+S(AND)?F[EU]RB$
Phineas and Ferb
^L[EI]+[CHT]+ENST(EI|IE)N$
Liechtenstein
ab([^b]|b[^a])*b+a
ab this simulates a code comment ba
Save Your Stats
Your Next Quiz
Name all 50 states in the USA. Easy, right?
Defense wins championships. That, and offense.
Can you name the ten Asian countries with the largest GDPs?
Drag the flag onto the correct state. Careful, though! One wrong move and the game ends.
Comments
No comments yet