The following regular expression will match a valid email string...
\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$
- jason scott gessner
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Christopher A. Libby
Sent: Monday, April 01, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: Extract email address from a string
Does anyone have some code that would extract an email address from a
string
into another string? I'm trying to parse WHOIS listings for email
addresses.
-Chris
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs