Skip to navigation
How to extract every possible email address without space from a string with python
07.12.13
emails can be complicated lets say to extract the email address my.ong-_.xeX.fox@crazy.au.com from a string the email cannot include spaces import re email = re.search(r'\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+', 'testtest my.ong-_.xeX.fox@crazy.au.com stringt.....') print email.group()
http://code.activestate.com/lists/perl-win32-admin/3244/
Reply
Anonymous
Information Epoch 1732519490
Avoid captive user interfaces.
Home
Notebook
Contact us