RegexWars
Tier 4 · Enchantercapture

Pull The Date Apart

Capture the year, month and day of an ISO date as three separate groups.

Capture challenges compare the groups of the first match, in order. Group 1 is the year, group 2 the month, group 3 the day.

Your pattern0 chars · par 23
//
Flags
Start typing — tests run as you go.0 of 4 visible tests passing
Test cases
  • 2026-08-10→ ["2026", "08", "10"]
  • released 1999-12-31 ok→ ["1999", "12", "31"]
  • 2026/08/10must not match

    slashes, not hyphens

  • 26-08-10must not match

    a two-digit year is not an ISO year

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