php replace all if not matched code example Example: php preg_replace function preg_replace($pattern, $replacement, $string);