$output =~ s#>(.*)($_)(\W)?(.*)<#$1$1$2$3$4#gi;