Answers for "replaceall nodejs"

1

replace all js

let a = 'a a a a aaaa aa a a';
a.replace(/aa/g, 'bb');
// => "a a a a bbbb bb a a"
Posted by: Guest on August-27-2020
1

javascript replaceall

//as of August 2020, not supported on older browsers
str.replaceAll("abc","def")
Posted by: Guest on October-17-2020
0

replaceall nodejs

function replaceAll(str, find, replace) {
  return str.replace(new RegExp(find, 'g'), replace);
}
Posted by: Guest on November-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language