View Full Version : cant figure out how to delete "\." from a string.

03-17-2003, 07:34 PM
after using
quotemeta("[user@domain.com]");I get
and now I can not figure out how to rid off \. from that string....
here is what I was trying to use:

preg_replace("/\\\./", ".", "\[user@domain\.com\]");
I tryed all kind of combinations with no result.

Can someone help me with that?

03-17-2003, 08:19 PM
tried stripslashes($string); ?

03-17-2003, 10:42 PM
Originally posted by Íkii
tried stripslashes($string); ?
stripslashes will remove ALL slashes, but I need them all, exept the one before " . "

03-18-2003, 01:46 AM

03-18-2003, 02:33 AM
Originally posted by firepages


thank you!
with little modification it worked as I wanted!
P.S. what's wrong with PHP CODE on this forum? it strips slashes...
it's nice see in color the code, but when it doesnt show everything, I'd prefere use [ code ]....[ /code ] instead...

Thanks again!

03-18-2003, 02:52 AM
lol - sorry I did not check my post , the forum did indeed remove the all-important slash


that or its Spookster who has a habit of editing my posts :D

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum