$ ./guess_the_languageRegex
Regex · hard · #58

Which IPv4 octet does this pattern accept?

/^(25[0-5]|2[0-4]\d|1?\d?\d)$/
  1. "199"
  2. "256"
  3. "300"
  4. "1000"
The alternatives cover 250-255, 200-249 and 0-199, so 199 is the only valid value listed.
Play Regex ▸