SOURCE


var a = "w0.000";
   var reg = /^(w|W)((0?)|(0\.0+))$/;
          document.write( !!a.match(reg))
console 命令行工具 X clear

                    
>
console