Email address matching
Rick Holbert
holbertr at dma.org
Mon May 19 16:41:25 EDT 2003
A wrote:
> Hi all,
> Is anyone capable of writing a regular expression for email address
> matching? Thanks
> Best regards,
> Ladislav
Olivier Sessink used the following in his mail2ldap.py script:
match = re.compile('[a-zA-Z0-9._]+@([a-zA-Z0-9.-]+\.[a-zA-Z]+)').match
I've used a slightly modified version in one of my scripts:
match = re.compile('[a-zA-Z0-9._+]+@([a-zA-Z0-9.-]+\.[a-zA-Z]+)').match
Rick
More information about the Python-list
mailing list