Using following Javascript sysntax you can replace forward slashes ('/') with backward slashes ('\') :
var strReplace = "C:\Temp\Temp1\Temp2\text.jpeg";
strReplace = strReplace.replace(new RegExp(/\\/g),"/");
Regardes,
Vijay
ASP.Net, MS SQL, PHP, MYSql, .Net 3.5, .Net 4.0, .Net 2.0, BizTalk Server 2006 R2, XMl, JavaScript, AJAX
var strReplace = "C:\Temp\Temp1\Temp2\text.jpeg";
strReplace = strReplace.replace(new RegExp(/\\/g),"/");
No comments:
Post a Comment