javascript正则表达式学习——顺序肯定环视,顺序否定环视
//举例说明。//经常看到有人为了给数字加千分号(,) 例 1344444 ---> 13,444,444;写一大堆代码.//其实没必要,这里给出正则的解决办法(js版)var str = "1212123213213";var reg = /(\d)(?=(\d{3})+(?!\d))/g;var reg1 = /(?=(\d{3})+(?!\d))/g;//与上边...