...

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



Dolphins
03-10-2005, 06:07 AM
Hi all,

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

example

var str="melton \john"

result

str should be "melton \\john"

Thanks in advance

glenngv
03-10-2005, 12:21 PM
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