Groups, captures and backreferences
·routine
Split the date
Match a date written as four digits, a hyphen, two digits, a hyphen, two digits — the whole string and nothing more — and capture the year, the month and the day, in that order, as three separate groups.
//
Corpus
Steps0/ 264 · par 88| Input | Match | Steps |
|---|---|---|
| (empty) | 3 | |
| (empty) | 3 | |
| (empty) | 3 | |
| (empty) | 3 | |
| (empty) | 3 | |
| (empty) | 3 |
Trace
Select an input to step through what your pattern did to it.
Cmd-Enter submits too.