好用的正则收集 匹配指定范围中间的内容 如:匹配{{与-_-中间的内容 $strPattern = "/(?<={{)[^-_-x]+/"; $arrMatches = []; preg_match_all($strPattern, $vv['formula'], $arrMatches);