Answers for "js remove slash in string"

0

remove slashes from string javascript

str = str.replace(/\\/g, '')
Posted by: Guest on August-17-2021
0

how to remove backslash from string in javascript

string.replace(/\\\//g, "/");

// this is also
let new_arr = arr.replace(/\\/g, "");
Posted by: Guest on February-10-2021

Code answers related to "js remove slash in string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language