![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
regularexpression
lu_huabin
这个作者很懒,什么都没留下…
展开
-
查找不可见字符的正则表达式
[\x0-\x1f\x7f]000 00 000 ^@ NUL001 01 001 ^A SOH002 02 002 ^B STX003 03 003 ^C ETX004 04 004 ^D EOT005 05 005 ^E ENQ006 06 006 ^F ACK007 07 007 ^G BEL008 08 010 ^H BS009 09原创 2015-09-11 10:32:16 · 11457 阅读 · 0 评论 -
javascript使用正则表达式格式化货币,金额
var val='212312.235423'var rex = /\d{1,3}(?=(\d{3})+$)/g;val.replace(/^(-?)(\d+)((\.\d+)?)$/, function (s, s1, s2, s3) { return '$' + s1 + s2.replace(rex, '$&,') + s3; })//"$原创 2015-08-19 14:42:32 · 5015 阅读 · 0 评论