I am new to python and I have been trying to change my php regex into python but I have run into some problems with this multiline thing. I have been up and down the internet for the past couple days and I can't seem to make sense of it, if someone could help that would be great. Here is the regex I have made:
mlsTagRegex = re.compile("<td\swidth=\"13%\"\sclass=\"TopHeader\">(.*?)</td>", re.MULTILINE)
tdTags = mlsTagRegex.findall(output.getvalue())
print tdTags
Here is the HTML I would like it to find:
<td width="13%" class="TopHeader">
<span class="red">I WANT THIS PART</span>
</td>
and it just gives me an empty array. I'm pretty sure what I am missing is probably fairly simple but like I said I am new to python so if anyone could help? Thanks!
p.s.: the output in findall is what pycurl is outputting and that part of the html is in there.