escaping \ in ereg_replace


#1

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 :)


#2

Hi John,

Is maybe stripslashes what you are after?

$mysql_name = stripslashes($mysql_name);

#3

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

thanks!


#4

that did the trick…

thanks


#5

Cool. :)