摘要: var str = "Is is the cost of of gasoline going up up"; var patt1 = /\b([a-z]+) \1\b/ig;// \1前面有空格 document.write(str.match(patt1)); 运行结果 Is is,of of,u 阅读全文
posted @ 2019-06-13 00:04 ecnu_lxz 阅读(246) 评论(0) 推荐(0) 编辑