正规表达式

验证含千位分隔符的数值:

/^(d{1,3}(,ddd)*(.d+)?|d+(.d+)?)$/.test(num)

原文地址:https://www.cnblogs.com/xbding/p/4862997.html