Jam*_*len 2 html python regex tags
我想用regex读取标签内的元素,例如:
<td>Stuff Here</td>
<td>stuff
</td>
Run Code Online (Sandbox Code Playgroud)
我使用以下内容: re.findall(re.compile('<td>(.*)</td>'), str(line).strip())
为什么我可以阅读第一个<td>标签,但不是第二个?
| 归档时间: |
|
| 查看次数: |
167 次 |
| 最近记录: |