escaping \ in ereg_replace


anyone know how i can run an ereg_replace on the mark? i tried this:

[php]$mysql_name = ereg_replace( “”, “”, $mysql_name );[/php]

but it didn’t work.
any help much appreciated, this has pissed me off for a while :)


Hi John,

Is maybe stripslashes what you are after?

$mysql_name = stripslashes($mysql_name);


didn’t think of that one… was just focusing on ereg_replace. i’ll test it and see if it works



that did the trick…



Cool. :)