Problem: I am returning an EMPTY LIST by doing the following:
output_list = re.findall(r'<td colspan="4" class="yellow-shade border justify">[\r\n]+(.*?)[\r\n]+', INPUTTEXT)
When for example the INPUTTEXT argument is exactly as follows:
<tr>
<td colspan="4" class="yellow-shade border justify">
Online Learning Comment
<div class="report-action">
<a class="add-new fb-link" href="http://blah-blah-blah/write-report?rep[company]=768744&rep[company_name]=Funky Group Services&rep[responds]=1" > Services Report</a>
<table style="float:right"><tr><td><a class="inappropriate" href="" onclick="window.open('http://blah-blah-blah/inappropriate-report?report=1379443','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=650,height=620'); return false">Inappropriate report?</a></td>
<td><a style=' margin-left:15px; float: right;' class="back" href="javascript:history.go(-1)">Back</a></td></tr></table>
</div>
</td>
</tr>
Required Output:
output_list =['Online Learning Comment'].
What am I missing in my steps. As new as I am to regular expressions, I thought the reg expression I have would work? Any pointers are much appreciated.