作者:手机用户2502938867 | 来源:互联网 | 2023-09-24 17:38
I would like to know how to retrieve all results from each
tag.
我想知道如何从每个
标签中检索所有结果。
import re
htmlText = 'item1
item2
item3
'
print re.match(']*size="[0-9]">(.*?)
', htmlText).groups()
result:
('item1', )
what I need:
我需要的:
('item1', 'item2', 'item3')
5 个解决方案