Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^.{0}[^A-C1-3O0QI].{0}[^D-G5-7O0QI].{0}[^H-J8-9O0QI].{0}[^K-M1-3O0QI].{0}[^N-Q4-6O0QI].{0}[^R-U5-7O0QQI]$
/
gm

Description

This is what we use to generate coupon codes for the company events

Submitted by anonymous - 5 years ago