I am change the PHP 5.2 to PHP 5.3 and trying to use preg_match replace ereg_replace.
But I keep getting the error
Warning: preg_replace() [function.preg-replace]: No ending delimiter '_'
in code
function Relink($linkstrip) {
$linkstrip = ereg_replace('_+', '-', str_replace(array(' ', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '+', '|', '\\', '\'', '"', '[', ']', '{', '}', ':', ';', '.', ',', '/', '?', '', '<', '>'), '_', trim(ereg_replace('[[:space:]]+', ' ', trim($linkstrip)))));
Can anyone please help me?
Thank you
Best Regards,
Pom