remove backslash from text in javascript code example Example: javascript string remove backslash string.replace(/\\\//g, "/");