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
- Repeat a pattern
- Match as little as possible
- Match one of several options
- Group without capturing
- Name a capture group
- Match repeated text
All quantifiers, groups and alternation commands · Regular expressions pcre2 cheatsheet