Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can I strip away some nested markup code in html by perl, like <SCRIPT> ?

by ender (Novice)
on Mar 23, 2000 at 01:04 UTC ( [id://5919]=note: print w/replies, xml ) Need Help??


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

If you can get the whole page in one string, then you can use:

s/<script>.*?<\/script>//igs; Which will eat everything between <script> and </script> tags. (and the <script> and </script> tags as well)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-03-29 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found