RegexWars
Tier 6 · Adeptmatch

Three In A Row

Match strings containing three consecutive digits.

{n} repeats the previous item exactly n times. \d\d\d works too — but it is one character longer, and this is a golf course.

Your pattern0 chars · par 5
//
Flags
Start typing — tests run as you go.0 of 5 visible tests passing
Test cases
  • abc123must match
  • 1234must match

    four in a row contains three in a row

  • 12must not match
  • 1a2b3must not match
  • no digitsmust not match

+ 8 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.