View Full Version : How to remove a single \ to \\

03-10-2005, 05:07 AM
Hi all,

I have a string with a '\' character and need to add one more \ to make it two.


var str="melton \john"


str should be "melton \\john"

Thanks in advance

03-10-2005, 11:21 AM
Is the value of str variable dynamically generated on the server-side? If yes, then you need to do the replacement of \ to \\ in the server-side.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum