develooper Front page | perl.beginners | Postings from February 2002

Re: select text

Thread Previous
From:
Dave Benware
Date:
February 5, 2002 11:39
Subject:
Re: select text
Message ID:
3C6034CE.D9A52A90@Townisp.com
"Jonathan E. Paton" wrote:
> 
>  --- Roman Fordinal <fordinal@slovanet.sk> wrote:
> >
> >   I need to get the email address from string:
> >
> >   $email="Name LastName <name@domain.com>"
> >
> >   How do I extract it?  [Above converted to English -
> JEP]
> 
> ($email = $email ) =~ /\<([^>]+)\>$/;
> 
> Jonathan Paton


I must be missing something, that code gave me:

Name LastName <name.com>


Bompa

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About