# you need extra (?:) $tag = qr{</?(?:(?!sup)[^>])*>}i; [download]
In reply to Re^3: Remove all html tag Except 'sup' by Anonymous Monk in thread Remove all html tag Except 'sup' by jai_dgl