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 BillBie 阅读(62) 评论(0) 推荐(0)
浙公网安备 33010602011771号