...

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";



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum