Hi,everyone!
I want to match <tr>...</tr> in my text file(exp.txt).
this is my python source code:
but it didn't work,what should I do?
I want to match <tr>...</tr> in my text file(exp.txt).
this is my python source code:
Code:
import re
f = open("exp.txt","r")
str = f.read()
pat = re.compile("<tr>.*</tr>")
m = pat.findall(str)
print(m)
Comment