When the regular expression greedy mode. * Will always match the last
// validate the let STR = "Hello World" ; the let RES = str.replace (/(.*) L /, '$ 10'); // $ + character after the replacement. 1 the console.log (RES); // Hello wor0d
When the regular expression greedy mode. * Will always match the last
// validate the let STR = "Hello World" ; the let RES = str.replace (/(.*) L /, '$ 10'); // $ + character after the replacement. 1 the console.log (RES); // Hello wor0d