Forum Moderators: coopster

Message Too Old, No Replies

Double quotes in ereg replace unwanted backslash

         

optik

4:26 pm on Mar 6, 2009 (gmt 0)

10+ Year Member



Hi

I am using this regex

ereg_replace("[^a-zA-Z0-9[:blank:][:space:]&()'?.,:%!@\"\-]+", "", $_REQUEST['product_des']));

Which is allowing double quotes except a backslash is being added to the string before each double quote.

optik

1:09 am on Mar 11, 2009 (gmt 0)

10+ Year Member



can anyone help?

eelixduppy

1:34 am on Mar 11, 2009 (gmt 0)



Doesn't seem like it is coming from your expression here. Perhaps you are escaping the string somewhere? Are you POSTing the data to another script?