At 23:03 +0200 2002.07.31, Multi-Graphics wrote:
>> $srting =~ s/<META NAME="keywords" CONTENT="(.+)".*?>/$1/igs
>>
>This script line isn't working when the $srting contains
>
>>> if the string contans for example this:
>>> <META NAME="keywords" CONTENT="
>>> test, good">
>
>after CONTENT=" is a new line, and the script will not see the keywords.
>I have tryed to put .*? somware else but whit no result.
>
>Any other sugestions will be very welkom.
It seems to work for me.
$srting = '<META NAME="keywords" CONTENT="
test, good">';
$srting =~ s/<META NAME="keywords" CONTENT="(.+)".*?>/$1/igs;
print $1;
Returns:
test, good
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/