Regular Expressions 101

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
^(?'Username'[-\w\d\.]+?)(?:\s+at\s+|\s+\[at\]\s+|\s*@\s*|\s*(?:[\[\]@]){3}\s*)(?'Domain'[-\w\d\.]*?)\s*(?:dot|\.|(?:[\[\]dot\.]){3,5})\s*(?'TLD'\w+)$
/
gm

Description

no description available

Submitted by anonymous - 11 years ago