$find="this string is my find"; $string='替换掉了';//将超链接替换成的内容 echo ereg_replace(']*)>([^<]*'.$find.'[^>]*)','\\2',$content);