轻松入门正则表达式之非贪婪匹配篇详解

2022-04-15 07:02:11

非贪婪匹配 (.*?)

import rea = '456qwe789rty123abc're=re.findall('456(.*?)789',a)print(re)

el="external nofollow" .*?rel="noopener">',html)for i in re: print(i)

image-20211018152344699