Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-22-2003, 07:41 AM   PM User | #1
Shecky
Regular Coder

 
Join Date: Dec 2002
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Shecky is an unknown quantity at this point
i still dont know regular expression pattern syntax!

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)?
__________________
seldom ruined but by myself
Shecky is offline   Reply With Quote
Old 03-22-2003, 11:18 AM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
You mean, use stripslashes?
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 03-22-2003, 02:58 PM   PM User | #3
stoodder
Regular Coder

 
Join Date: Oct 2002
Location: Milwaukee, Wisconsin
Posts: 123
Thanks: 1
Thanked 0 Times in 0 Posts
stoodder is an unknown quantity at this point
yea well if you have ther message set it like this

$message= "message part";
stripslashes($message);
echo"$message";
stoodder is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 PM.


Advertisement
Log in to turn off these ads.