<span class="xyz">z
<span>abc</span>
<span>cdf</span>
</span>
This is my sample code and must replace like this
<span class="xyz">z
<span>abc</span>
<span>cdf</span>
$</span>
<span class="xyz">z
<span>abc</span>
<span>cdf</span>
</span>
This is my sample code and must replace like this
<span class="xyz">z
<span>abc</span>
<span>cdf</span>
$</span>
A very basic solution would be /(<span[^>]*>)(.*?)(<\/span>)/
https://regex101.com/r/BbTxJ3/1
I don't know what regex flavor notepad++ uses, so I can't say that the replace code would be the same, but I'm sure you'll be able to work with this