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

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

Was this page helpful?