) it is a html-tag # we don't want to highlight those # The regex looks for the end-tag (>) assuming # the page translates BOTH < and > to < and > # not html-editors do, pmwiki does $pregmatch="#(\b)($word)(\b)(?![^<]*>)#i"; $pregreplace="$1$2$3"; $text=preg_replace($pregmatch,$pregreplace,$text); } ?>