andsotheuseofaonce-onlysubpatternformatchingstringsofnon-parenthesesisimportantwhenapplyingthepatterntostringsthatdonotmatch.Forexample,whenitisappliedto(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa()ityields"nomatch"quickly.However
>>>re.findall(r"\w+ly",text)['carefully','quickly'] 5.7找到所有副词及其位置 如果需要关于匹配文本的所有模式匹配的更多信息,finditer()是有用的