SOURCE

console.log(/^\w+$/.test('12_qA'));

console.log(/^[a-z_]$/.test('daddvidshih'));


var s = "ssAS134A";
var s = "ssAS134A.";
s = s.replace(/[^0-9.]/g,"");
s.replace(/\./g,"");
console.log(s);
console 命令行工具 X clear

                    
>
console