http://qs321.pair.com?node_id=1100534


in reply to Removing text between HTML tags

You can’t.

More seriously, you can get closer to what you were trying to achieve using reluctant quantifiers: s/<(.*?)>/g;. This will still fail in some corner cases, so you’re better off using a full-blown HTML parser.