Front page | perl.beginners |
Postings from February 2002
Re: select text
Thread Previous
|
Thread Next
From:
John W. Krahn
Date:
February 5, 2002 14:57
Subject:
Re: select text
Message ID:
3C606342.5EE915E7@acm.org
John Edwards wrote:
>
> You can use the following code...
>
> $email = 'Name LastName <name@domain.com>';
> $email =~ /<([\w@.]+)>/;
> $email = $1;
> print $email;
What about this valid e-mail address <module-authors@perl.org>? What if
$1 is set from a previous match and this match fails?
John
--
use Perl;
program
fulfillment
Thread Previous
|
Thread Next