loading
open in
index.js
1
2
3
let testRegex = /yellow/gi;
let testString = 'Yellow green and yellow'
console.log(testString.replace(testRegex, 'blue'));
node v10.15.2 linux/amd64