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 wandering the Monastery: (6)
As of 2016-06-25 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.