如何使用python正确地从CSV文件替换(删除)一些信息?

我想从CSV文件中删除一些信息,但是遇到了一些问题。我想尽快解决。

以下是我的CSV文件信息。

enter image description here

I used re.sub to delete some information, but I will delete the wrong things.

以下代码是我的示例:

new_html_code = re.sub('" target="_blank">.*</a>', " ", new_html_code)

我只想删除以下HTML代码:

" target="_blank"><img src="https://upload.cc/i1/2020/02/20/g7no03.jpeg" alt="https://upload.cc/i1/2020/02/20/g7no03.jpeg" data-src="https://upload.cc/i1/2020/02/20/g7no03.jpeg" onload="DrawImage(this)" width="300" height="617"></a>

但是,我的代码将删除更多信息。它将在以下内容中删除更多信息:

" target="_blank"><img src="https://upload.cc/i1/2020/02/20/g7no03.jpeg" alt="https://upload.cc/i1/2020/02/20/g7no03.jpeg" data-src="https://upload.cc/i1/2020/02/20/g7no03.jpeg" onload="DrawImage(this)" width="300" height="617"></a><br><br>之前大家落咗名嘅口罩訂購-Waiting List:<br><a href="https://docs.google.com/forms/d/1gu33q5_XO3PqhwRm7rGLQrwNuScfDlvPvCCHRd81Fdk" target="_blank">https://docs.google.com/forms/d/1gu33q5_XO3PqhwRm7rGLQrwNuScfDlvPvCCHRd81Fdk</a><br><br>無收到PM訂口罩都可以訂搓手液, 要填呢張form<br><a href="https://forms.gle/YmQewsz1z689QtKx7" target="_blank">https://forms.gle/YmQewsz1z689QtKx7</a>

I have a lot of </a> in each field. I know my code is detecting the last </a>. I want to make it to detect the first</a>, instead of the last </a>.

谁能帮我?谢谢。