Re: [MacPerl-AnyPerl] verifing a string

2002-08-01 Thread Eelco Alosery
Thanks Chris, Sorry for my bad submision of my problem. I use now this: $URL = "http://www.eelco.com";; use LWP::Simple; ($string = get ($URL)) =~ s/\015?\012/\n/g; $string =~ //is; $keywords = $1; and I get now the keywords, but now I olso want to filter out any new lines in $ keywords. I wan

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Ronald J Kimball
On Wed, Jul 31, 2002 at 07:21:04PM +0200, Eelco Alosery wrote: > I read whit LWP::Simple a url, and from that string i need the keywords. > > I use this script: > > > if ( $srting =~ s//$1/ig ) If you use .* inside the quotes then you may end up matching too much. Try this instead: s/]*>/$1/i

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Eelco Alosery
I try'd it whit this url $URL = "http://www.eelco.com";; use LWP::Simple; $string = get ($URL); if ($string =~ s//$1/ig) { $keywords = $1; } $keywords remains empty Met vriendelijke groet Multi-Graphics Eelco Alosery Koekoeksbloem 11 8255 KH Swifterbant tel/fax: 0321-843340 Mobiel: 06-55754

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Keary Suska
on 7/31/02 3:03 PM, [EMAIL PROTECTED] purportedly said: >> $srting =~ s//$1/igs >> > This script line isn't working when the $srting contains > >>> if the string contans for example this: >>> > > after CONTENT=" is a new line, and the script will not see the keywords. > I have tryed to put .*

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Chris Nandor
At 23:03 +0200 2002.07.31, Multi-Graphics wrote: >> $srting =~ s//$1/igs >> >This script line isn't working when the $srting contains > >>> if the string contans for example this: >>> > >after CONTENT=" is a new line, and the script will not see the keywords. >I have tryed to put .*? somware else

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Multi-Graphics
> $srting =~ s//$1/igs > This script line isn't working when the $srting contains >> if the string contans for example this: >> 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 w

Re: [MacPerl-AnyPerl] verifing a string

2002-07-31 Thread Keary Suska
on 7/31/02 11:21 AM, [EMAIL PROTECTED] purportedly said: > I read whit LWP::Simple a url, and from that string i need the keywords. > > I use this script: > > > if ( $srting =~ s//$1/ig ) > { > $keywords = $1; > } > > But this code only read the keywords if it is one line and no bad html, lik