dub27 Posted March 4, 2006 Share Posted March 4, 2006 I have searched and searched and tried and tried...Can anyone provide assistance with a script as follows:PHP codeSearch and Replace using ereg_replaceSearch on '\141' that is with a backslash in the search variableResult to 'a' that is alphanumeric replacementThe ereg_replace is removing the backslash in the search retrieval but is placing a backslash in the search replace e.g. '\a'I have tried using single quotes, double quotes, many variations but cannot find a reg_replace expression to remove the backslash and not include in the result search. Any help would be very much appreciated.Dub Quote Link to comment Share on other sites More sharing options...
Hooker Posted March 4, 2006 Share Posted March 4, 2006 have you tried working with:[code]stripslashes()[/code] instead? it sounds like it'd be perfect for you. Quote Link to comment Share on other sites More sharing options...
dub27 Posted March 6, 2006 Author Share Posted March 6, 2006 Thank you for your help... yes, tried stripslashes... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.