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