how to check if a string is a valid email address (RFC822)?
Thomas Wouters
thomas at xs4all.net
Thu May 25 16:44:45 EDT 2000
On Wed, May 24, 2000 at 10:40:22PM +0000, Otis Gospodnetic wrote:
> I need to parse some text and find all (RFC822 valid) email addresses
> in it.
> Is there a module that can take a string and tell me if the string is a
> valid email address or not?
> I am looking for something like Email::Valid or Email::Find modules for
> Perl.
I think (but am not sure, it kind of depends on what kind of input you
expect) you are looking for the rfc822 module. You might have to pre-parse
the text a bit, but that depends on your input.
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list