python 中re模块匹配换行中的字符
摘要:使用 re.compile(patt).findall(string)可以使用2中方法 ①.patt中正则表达式为:'([\s\S]*?)' ,使用[\s\S] ②.re.compile(patt,re.S).findall(string) ,在匹配中加入re.S 直接使用re.findall,则仍
阅读全文
posted @ 2020-07-08 10:20
posted @ 2020-07-08 10:20
Powered by:
博客园
Copyright © 2025 BillBie
Powered by .NET 9.0 on Kubernetes