Rob Hanson wrote:
> Try this...
>
> my $data = "BlahBlahBlahBlah From: BlahsvilleDude
> <[EMAIL PROTECTED]>BlahBBlahBBlah"
> $data =~ s/^.*<([^>]*)>.*$/$1/;

Hi Rob.


Anchoring the search at the start of the string and then allowing
'any number of anything' is the same as not anchoring it! Likewise
with your dollar anchor at the end.

    $data =~ m/ <([^>]*)> /x;
    my $newdata = $1;

Cheers,

Rob





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to