$ ./guess_the_languageRegex
Regex · medium · #9

Which input does this pattern match?

/^\d{2,4}$/
  1. "2024"
  2. "12345"
  3. "7"
  4. "12a"
{2,4} requires between two and four digits, and the anchors forbid anything else.
Play Regex ▸