on 7/31/02 3:03 PM, [EMAIL PROTECTED] purportedly said: >> $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. > > > But thanks anyway >
Because you weren't using the /s option, which, among other things, permits '.' to match newlines. RTFM. Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet"