I have a fixed class "div" that is present in all my HTML files on Visual Studio Code. The contents of these divs also contain different things. I want to bulk replace and delete these divs. Is there a way to do this?
<div class="WinOLS__detail-right WinOLS__detail-right--logged-out">
<span class="WinOLS__purchase-intro">File:<br>Paneli Tavuk Tarif</span>
<span class="WinOLS__purchase-credits">2.5 kredi</span>
<div class="Notice Notice--neutral">
<div>
Please <a href="../../account/tr/......." title="Login">login</a>
or <a href="../../hesap/tr/kayit.html" title="Bir Hesap Oluştur">Bir Hesap Oluştur</a>
bu dosyaya sahip olmak istiyorsan
</div>
</div>
</div>
I want to delete all divs that have class "WinOLS__detail-right WinOLS__detail-right--logged-out" as seen above. I can't using find and replace. Because there are different contents in the Div. All the divs I want to change have the same class but different content. I want to delete all divs with the same class along with their content.
I want to replace the entire div content, but when I search for it by code, no results are found.
<div class="WinOLS__detail-right WinOLS__detail-right--logged-out">.+?</div>
or
<div class="WinOLS__detail-right WinOLS__detail-right--logged-out">(.+?)</div>
That's not working : Find and Replace