Regular expressions pcre2 · Quantifiers, groups and alternation
Match one of several options
Match either cat or dog, whichever appears.
cat|dog
Official Regular expressions pcre2 documentation
More quantifiers, groups and alternation commands
- Repeat a pattern
- Match as little as possible
- Capture parts of a match
- Group without capturing
- Name a capture group
- Match repeated text
All quantifiers, groups and alternation commands · Regular expressions pcre2 cheatsheet