Regular Expressions 101

Sponsors

Library entries

6
pcre

Extract style

no description available
Submitted by anonymous - 7 years ago
6
pcre

Username:Password

Regex For finding username:password
Submitted by Ghost - 7 years ago
6
javascript

Email with + symbol

email that accepts the plus (+) symbol
Submitted by luckcheese - 7 years ago
6
javascript

HTML img

Grabs all HTML tags
Submitted by Pirate11 - 7 years ago
6
javascript

Email

no description available
Submitted by anonymous - 6 years ago
7
pcre

rsyslog test

global modifier
Submitted by dtmland - 7 years ago
7
javascript

Match text (not within html tag)

no description available
Submitted by Moistly - 7 years ago

Disorted Email Addresses

Vote

49

Regular Expression
pcre

/
^(?'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 - 10 years ago