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

RE: select text

Thread Previous | Thread Next
From:
John Edwards
Date:
February 5, 2002 09:30
Subject:
RE: select text
Message ID:
2FB59B145095D511A7C90050BAC349F3173198@MAIL
  "Give a man a fish and you feed him for a day.
   Teach a man to fish and you feed him for a life time."
  
  -Chinese proverb

This is a beginners list, no? I thought we were here to help people learn,
not provide them with solutions that may work, but they don't know how...

John

-----Original Message-----
From: Jonathan E. Paton [mailto:jonathanpaton@yahoo.com]
Sent: 05 February 2002 17:19
To: beginners@perl.org
Subject: Re: select text


 --- 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

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



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