Regex Tester

Test regular expressions with match highlighting, capture groups, flags and explanations.

  • Generated locally in your browser
  • We do not store your passwords

Options

Flags

  • g — find all matches

Pattern

Test string

Matches

Release: 2026-10-01 and backup 2025-12-31.
  • Match 1

    2026-10-01
  • Match 2

    2025-12-31

Capture groups

  • Match 1

    Group 1 (year)

    2026

    Group 2 (month)

    10

    Group 3 (day)

    01
  • Match 2

    Group 1 (year)

    2025

    Group 2 (month)

    12

    Group 3 (day)

    31

Explanation

  • (?<year>Named capturing group
  • \dDigit (0–9)
  • {4}Repeat quantifier
  • )End group
  • -Literal character
  • (?<month>Named capturing group
  • \dDigit (0–9)
  • {2}Repeat quantifier
  • )End group
  • -Literal character
  • (?<day>Named capturing group
  • \dDigit (0–9)
  • {2}Repeat quantifier
  • )End group