Example
Resulting value of
x
var str = "Hello world";
var x = str.replace(/[^a-f]/g,"*");
*e********d