OT: regex to find email

Josh Close narshe at gmail.com
Tue Sep 21 17:03:03 CEST 2004


I've been trying to find a good regex to parse emails, but haven't
found any to my liking. I basically need to have

( r'[a-z0-9\.\-\_]@[a-z0-9\.\-\_]', re.IGNORECASE )

but the first part can't start with .-_ and the last part has to have
a . in it (first/last being before/after the @).

Thanks.

-Josh



More information about the Python-list mailing list