摘要: var f = /@/g; var src="2876110865@qq.com" console.log(src.match(f)); new RegExp(pattern/attributes); attribute:g(执行全局搜索,直到搜索完毕才结束) m(多行匹配) i(大小写不敏感) 匹 阅读全文
posted @ 2017-04-17 14:10 wangshiqiao 阅读(175) 评论(0) 推荐(0)