$string =~ s/([^<B>])($swapString)([^<\/B>])/$1<B>$2<\/B>$3/gi; [download]
In reply to Re: Double regex match not working correctly. by dailylemma in thread Double regex match not working correctly. by the_0ne