I am using a script which replaces "." in the output as "_" i want "." to stay as it is Smarty is used in the script how can i get this problem solved
Without seeing the script we can't help. Base don extreme guesswork, look for str_replace(".", "_"); and delete it.
Its A Paid script so im not sure if i can share the source but here is 1 code i think needs to be changed is it this or some other $s = preg_replace('/[^\w]/','_', $s); $s = preg_replace( array('/[\xf1]/','/[\xe0\xe1]/','/[\xe8\xe9]/','/[\xec\xed]/','/[\xf2\xf3]/','/[\xf9\xfa]/'), array('n','a','e','i','o','u'), $s ); $s = urlencode($s); $s = preg_replace('/%[A-F0-9]{2}/','_',$s); $s = preg_replace('/_{2,}/','_',$s); $s = trim($s,'_'); return $s; Code (markup): anything to change in this code
I hate Reg Exp so badly I'll pass. It doesn't just replace dots but more. You'll have to add an exception to it somehow (don't know how).