python正则表达式匹配问题

2025-05-07 07:49:15
推荐回答(1个)
回答1:

re.findall(r".+?",html,re.S)
加个re.S,表示.匹配所有字符,包括换行符即可