only remove tag when regex is found