I need some help with a regexp please

Sorin Schwimmer sxn02 at yahoo.com
Fri Sep 22 11:22:21 EDT 2006


Hi,

My $0.02:

re.compile('^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|intl|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$')

I picked it up from the Net, and while it may be not perfect (you've got lots of reply's telling you why),
it's good enough for me.

Good luck,
Sorin



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060922/69be7b52/attachment.html>


More information about the Python-list mailing list