Answers for "replace specific character in string node js"

3

javascript regex replace

const search = 'duck'
const replaceWith = 'goose';

const result = 'duck duck go'.replaceAll(search, replaceWith);

result; // => 'goose goose go'
Posted by: Guest on June-23-2020
6

str replace javascript all

str.replace(/abc/g, '');
Posted by: Guest on May-16-2020

Code answers related to "replace specific character in string node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language