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

Let's say you have some html like this:
<b>I like</b> <i>squirrels!</i>.
You could use this:
$html =~ s/<[^>]*>([^<]*)<\/[^>]*>/$1/gs;
To turn it into this:
I like squirrels.
{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. }