🦖 Tyrannosaurus Regex
Syntax Basics Island
Level 5: Esther
5 of 13
Character ranges: match characters within a range
A hyphen in a character class defines a range. The pattern /[A-Z]/ matches any uppercase English letter, while /[A-Za-z]/ matches both upper- and lowercase letters.
Esther is trying to get more numbers in her diet, so every word must contain at least two digits in a row.
/ /
✅ Should Match (0 / 4)
867-5309
1729
30 Rock
48÷2(9+3)÷8
❌ Should not Match (0 / 4)
k-9
8-ball
Y2K
R2-D2