Hi all,<div><br></div><div>I have some HTML string which I would like to feed to BeautifulSoup.</div><div><br></div><div>But, One malformed attribute breaks BeautifulSoup.<br><div><br></div><div>    <p style='terp_header' wrong_tag=' text1 ' text2 ' and 'para'  '  class='terp_header'> My String</p><br clear="all">
<br></div><div>I would like it to replace all the occurances of that attribute with an empty string.</div><div><br></div><div>I am unable to figure out the exact regex, which can do this job.</div><div><br></div><div>This is what, I have managed so far,</div>
<div><br></div><div>m = re.compile("rml_except='([^']*)")</div><div><br></div><div>As you see, it will stop at the first occurance of single quote.</div><div><br></div><div>Any suggestions will be useful.</div>
<div><br>-- <br>Regards,<br>S.Selvam<br>SG E-ndicus Infotech Pvt Ltd.<br><a href="http://e-ndicus.com/" target="_blank">http://e-ndicus.com/</a><br><br> " I am because we are "<br>
</div></div>