Re: [MacPerl-AnyPerl] verifing a string
[email protected] (Keary Suska) Wed, 31 Jul 2002 19:48:15 -0600
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Message-ID | <B96DEF7F.1133A%[email protected]> |
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"