JavaScript to Replace Backslash
***If this post helped you, please support this blog by clicking one of the links on this page. Thanks :) ***
Backslashes can be removed from a JavaScript string as follows:
var strBackslash = ‘\\backslash’;
var strReplace = strBackslash.replace(/\\/,”);
document.write(strReplace);
Related articles:
JavaScript Regular Expressions