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

Re: select text

Thread Previous | Thread Next
From:
Jonathan E. Paton
Date:
February 5, 2002 09:19
Subject:
Re: select text
Message ID:
20020205171851.47338.qmail@web14609.mail.yahoo.com
 --- 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

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Thread Previous | Thread Next


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