View Full Version : i still dont know regular expression pattern syntax!
Shecky
03-22-2003, 07:41 AM
i just need to remove all of the backslash characters in a string variable. How on earth do you specify a backslash as the pattern for a preg_replace(and the like)?
Nightfire
03-22-2003, 11:18 AM
You mean, use stripslashes (http://www.php.net/stripslashes)?
stoodder
03-22-2003, 02:58 PM
yea well if you have ther message set it like this
$message= "message part";
stripslashes($message);
echo"$message";
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.