the cpan module: http://search.cpan.org/~miyagawa/Email-Find-0.09/lib/Email/Find.pm
might come in handy... On Tue, 2003-10-14 at 13:59, Christopher Lyon wrote: > I have a line of text that I want to pull an e-mail address out from. Is > this the best way to pull that information from that line? > > <snip> > $user = 'From: "First Last Name" <[EMAIL PROTECTED]>'; > > @addy = split(/</, $user, 2); > chop $addy[1]; > </snip> > > > Also, how do you handle if the email is in brackets like so? > > $user = 'From: "First Last Name" [EMAIL PROTECTED]'; > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]