stream limits? or algorithm help
Andrew P. Lentvorski, Jr.
bsder at allcaps.org
Fri Mar 19 17:53:45 PST 2004
On Fri, 19 Mar 2004, Cory Petkovsek wrote:
> After I thought about it a little more a perl hash of arrays is the simplest
> way:
>
> m/[a-z0-9\._-]+\@([a-z0-9\._+-]+)/i;
Sigh.
Rather than creating "yet another broken regexp for parsing mail
addresses", isn't there an RFC compliant address parser available in CPAN?
One is available in Python, I'm sure there has to be one available in Perl.
In Python, I would create a dict (hash in Perl) whose keys were the domain
names and whose entries were a list of the email addresses.
-a
More information about the KPLUG-List
mailing list