Regular expressions pcre2 · Quantifiers, groups and alternation

Capture parts of a match

Capture the year, month and day of an ISO date as groups 1, 2 and 3.

(\d{4})-(\d{2})-(\d{2})

Official Regular expressions pcre2 documentation

More quantifiers, groups and alternation commands

All quantifiers, groups and alternation commands · Regular expressions pcre2 cheatsheet

Was this page helpful?