Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 perusing the Monastery: (16)
As of 2016-04-29 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.