Example
Resulting value of
x
var str = "Hello world";
var x = str.replace(/\d/gi,"*");
Hello ****