I'm trying to regexp a line from a webpage. The line is as follows:
<tr><td width=60 bgcolor='#ffffcc'><b>random Value</b></td><td align=center width=80>
This is what I tried, but it doesn't seem to work, can anyone help me out? 'htmlbody' contains the html page and no, I did not forget to import 're'.
reg = re.compile("<tr><td width=60 bgcolor='#ffffcc'><b>([^<]*)</b></td><td align=center width=80>")
value = reg.search(htmlbody)
print 'Value is', value