Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

•Re: Answer: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?

by merlyn (Sage)
on Oct 15, 2003 at 15:02 UTC ( #299430=note: print w/ replies, xml ) Need Help??


in reply to Answer: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?
in thread regular expressions

Sure, that works for simple HTML, but real life HTML can fail on such a simple regex. For example:

<!-- > this is still the comment --> and some more text
In that case, "this is still the comment" would be left within the output, when it shouldn't be.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


Comment on •Re: Answer: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://299430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-19 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (131 votes), past polls