$string = "rntsoft.com" ; $pattern = '/.*?<\/a>/i'; $replacement = 'Click!'; $string = preg_replace($pattern, $replacement, $string); print($string);?>