Regex tester
Test a regular expression live, see every match and group, and read it in plain English.
//g
2 matches
Order #1042 shipped on 2026-10-19 to ada@example.com. Order #1043 shipped on 2026-10-21 to grace@example.org.
| # | Match | Index | year | Group 2 | Group 3 |
|---|---|---|---|---|---|
| 1 | 2026-10-19 | 23 | 2026 | 10 | 19 |
| 2 | 2026-10-21 | 77 | 2026 | 10 | 21 |
In plain English
(?<year>start of group 1, named "year"\da digit (0-9){4}exactly 4 of the previous)end of group-the text "-"(start of group 2\da digit (0-9){2}exactly 2 of the previous)end of group-the text "-"(start of group 3\da digit (0-9){2}exactly 2 of the previous)end of group
- #dev
- #regex
- · runs in your browser