精通正则表达式 笔记 1、[^U] 的真意: 2、字符组 与 连字符: 3、价格小说点舍入 var s='12.370000'; console.log(s.replace(/(.dd[1-9]?)d*/,'$1')); 3、日期匹配: