Regular Expressions 101

Library entries

Email parser, also distorted forms

Vote

0

Regular Expression
python

"
^(?P<Username>[-\w\.]+)(?:\s+\W*at\W*\s+|\s*[^\@\s]*?@[^\@\s]*?\s*)(?P<Domain>([\w\-]+)(?:(?:\.|\s+\W*?dot\W*?\s+)([\w\-]+))+?(?:(?:\.|\s+\W*?dot\W*?\s+)([\w\-]+))??$)
"
gm

Description

Loading markdown...
Submitted by fine_dust - 6 years ago