re正则:匹配、定位、替换、提取

re说明

Python中re的match、search、findall、finditer区别_djskl的博客-CSDN博客_re.findall
https://blog.csdn.net/djskl/article/details/44357389

Match对象

re.compile

re.match

re.finditer

re.finditer(pattern, string, flags=0)

搜索字符串,返回一个匹配结果的迭代类型,每个迭代元素是match对象

猜你喜欢

转载自blog.csdn.net/qq_37639139/article/details/124566995