Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 Re: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?
in thread How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2023-12-09 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?