首页 > TAG信息列表 > matchesArray
js 实现类似php preg_match_all 函数的函数封装
function matchAll (data, exp) { var regex = exp; var Regex = new RegExp(regex, 'mg'); var Matches = data.match(Regex); matchesArray = new Array(); for (var i in Matches) { ngRegex = new RegExp(regex); ngMatche