Hi,
I have the following text:
[tt]
<input name=email value="name@hostname.com" size=50 maxlength=50>
[/tt]
and I want to get the email address out of it into a variable. I am using the following regex:
[tt]
$text =~ m/.+<input name=email value=\"(.+\@.+\..+)\" size=50 maxlength=50>.+/;
print "$1\n";
[/tt]
it does find the email address, but is there a neater way of doing thi, say on one line?
Will.
fortytwo
I have the following text:
[tt]
<input name=email value="name@hostname.com" size=50 maxlength=50>
[/tt]
and I want to get the email address out of it into a variable. I am using the following regex:
[tt]
$text =~ m/.+<input name=email value=\"(.+\@.+\..+)\" size=50 maxlength=50>.+/;
print "$1\n";
[/tt]
it does find the email address, but is there a neater way of doing thi, say on one line?
Will.
fortytwo