I am trying to replace certain parts of the string below.
'''<td align="center"> 5 </td> <td> align="center"> 0.0001 </td>'''
I need to remove the <td>
tag if there is a '0.'(decmial occurrence). i.e. the output should be
'''<td align="center"> 5 </td>'''
I have tried this
data = ' '.join(data.split())<br>
l = data.replace('<td align="center"> 0.r"\d" </td>', "")
but didn't succeed. Could anyone please help me with doing this.
Thanks in advance