会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
大道至简
漫漫长路,何不简单一点
博客园
首页
新随笔
联系
订阅
管理
2019年6月13日
正则-连续相同的单词
摘要: 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)
编辑
公告