are you sure your input is what you expect it to be?
maybe print out all the lines?
and if you like, i wrote a very basic and simple html parser.
you can get it here: http://japh.nu/index.cgi?base=modules
take a look at the source, it should probably explain a lot
hth
Jos
> I'm trying to modify cookbook example 6-2:
>
> #killtags: very bad html tag killer
> undef $/;
> while(<>){
> s/<.*?>//gs;
> print;
> }
>
> to instead look for all "href=" in an html file across paragraphs/newlines
> but I only get the first successful match. why does the cookbook's work
but
> not mine?
>
> undef $/;
> while(<>){
> /href="(.*?)"/gs;
> print "$1\n";
> }
>
> TIA,
>
> -- drew cohan
> beginner perl enthusiast
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]