Regular Expressions 101

Community Patterns

0

Messages

ECMAScript (JavaScript)
Show messages
Submitted by Bot - 2 years ago
0

URL

ECMAScript (JavaScript)
URL detection
Submitted by anonymous - 2 years ago

Disorted Email Addresses

51

Regular Expression
PCRE (PHP <7.3)

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

Description

Loading markdown...
Submitted by dislick - 11 years ago