Answers for "javascript replace anti slash"

2

replace backward slash in javascript

const data = { "\\id\\": "\\23232\\", "\\pass\\": "\\1434\\" };
console.log(data);
const b = JSON.stringify(data);
str = b.replace(/\\/g, '');
console.log(str);
Posted by: Guest on May-21-2021
0

replace double slash with single slash node.js

.replace(/\/\//gi, "/");
Posted by: Guest on January-10-2022

Code answers related to "javascript replace anti slash"

Code answers related to "Javascript"

Browse Popular Code Answers by Language