Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?:[aeAE][lI][ -])?(?:[GKQ]h?|Qu)[aeu]([tdz]{1,2}[h']?)\1?af{1,2}[iy]
/
g

Description

Matches all spellings of the name Gaddafi that I've yet discovered.

Submitted by Klisz - 8 years ago