Email address matching

Cameron Laird claird at lairds.com
Tue May 20 09:34:26 EDT 2003


In article <babfhp$sr5$1 at charm.magnus.acs.ohio-state.edu>,
Rick Holbert  <holbertr at dma.org> wrote:
>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

True.

But there's a darker side to the story, which the original
poster deserves to know:  <URL: http://wiki.tcl.tk/2934 >.
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://phaseit.net/claird/home.html




More information about the Python-list mailing list