thines01
Postaholic
2,433 posts since Oct 2009
Reputation Points: 447
Solved Threads: 408
Skill Endorsements: 7
Thank you Sir
When you have a useful piece of code and no issue, write a code snippet instead of a regular thread. You can choose this in the 'title' section when you start a new thread.
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
pyTony
pyMod
6,314 posts since Apr 2010
Reputation Points: 879
Solved Threads: 987
Skill Endorsements: 26
More useful regular expression is explained in http://www.regular-expressions.info/email.html
r"\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b"
I added lower case so does not need to be used with flag ignore the case. The page has also standards confirming regular expression, but most features of standard are not practically needed or helpful.
pyTony
pyMod
6,314 posts since Apr 2010
Reputation Points: 879
Solved Threads: 987
Skill Endorsements: 26