in reply to Dump Text from HTML
Also, you assume that the opening bracket and the closing are on the same line, which isn't usually neeeded. So adding the s modifier to your substitutions would help, too. And, you forgot to substitute > with > :)$riga =~ s/<\/.+?>//g;
There is lot of space for optimizing it, like using different delimeters to avoid having to escape the slash, or doing more substitutions just in one line, like the first two:
I hope you get what I mean, nice script anyway.$riga =~ s!</?.>!!g;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Dump Text from HTML
by Sigmund (Pilgrim) on Jul 28, 2001 at 20:06 UTC | |
10x 4 reply
by Sigmund (Pilgrim) on Jul 22, 2001 at 18:34 UTC | |
Re: Re: Dump Text from HTML
by dentargiano (Initiate) on Jul 10, 2002 at 10:10 UTC | |
Re: Re: Dump Text from HTML
by dentargiano (Initiate) on Jul 10, 2002 at 10:22 UTC |