I ran your code. It doesn't completely remove the following bad tags:
my $empty = "[color=Red][b][/b][/color]"; [download]
In reply to Re^2: Regex help by kiat in thread Regex help by kiat