Regular expressions pcre2 · Quantifiers, groups and alternation
Repeat a pattern
Match between two and four letters a. Also: * zero or more, + one or more, ? optional.
a{2,4}
Official Regular expressions pcre2 documentation
More quantifiers, groups and alternation commands
- Match as little as possible
- Match one of several options
- 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