Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Dump Text from HTMLby alfie (Pilgrim) |
on Jul 18, 2001 at 12:50 UTC ( [id://97581]=note: print w/replies, xml ) | Need Help?? |
You have some common mistakes in your script: You are matching greedy - add a ? after your +, like this: 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 > :) 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. -- use signature; signature(" So long\nAlfie");
In Section
Cool Uses for Perl
|
|