摘要: 推荐先读 正则表达式必知必会 这本书### ?放在不定量词后面(放在 * + 这样的量词后面)的? 是表示非贪婪匹配 贪婪匹配```str = "AB1111BA111BA";reg = /AB[\s\S]+BA/;console.log(str.match(reg));```非贪婪匹配```st... 阅读全文
posted @ 2015-07-31 12:31 cart55free99 阅读(146) 评论(0) 推荐(0) 编辑