![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: How can use Perl to strip away some nested HTML markup code, like <SCRIPT> ?by Pedro Picasso (Sexton) |
on Oct 15, 2003 at 14:10 UTC ( #299416=note: print w/replies, xml ) | Need Help?? |
Let's say you have some html like this:
You could use this: To turn it into this: {QandAEditors note: merlyn points out by way of followup that the above regexp only works for simple HTML, and that in real life HTML, the regexp can't be counted upon to not fail. See the followup for details. }
In Section
Seekers of Perl Wisdom
|
|