I'm trying to find to find anything with an included word. So far I've got (r'>(.*(word)?)</a>'
but I'm having some trouble. What I want is to have some text (word) some text
.
- 积分
0 - 话题
0 - 评论
3224 - 注册排名
2117
I'm trying to find to find anything with an included word. So far I've got (r'>(.*(word)?)</a>'
but I'm having some trouble. What I want is to have some text (word) some text
.
Using
re.findall
:给出:
一个例子: