Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 taking refuge in the Monastery: (7)
As of 2014-08-21 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls