In the example below, I want to use regex as to find the html tag <sony>
between other 2 lines.
<table width="697" border="0">
<tr>
<td><h1 class="den_articol" itemprop="name">Your Mirror</h1></td>
</tr>
</table>
<sony>
<p class="text_obisnuit"><span class="text_obisnuit2">* Notă:</span> <a href="https://www.youtube.com/watch?v=IB4P5t3JGlg" target="_new">Simply Red - Your Mirror</a></p>
The OUTPUT:
<sony>
My regex formula doesn't work:
</table>\s+\n(.*?)<p class="text_obisnuit">
\s+
from your regex as it seems there're no spaces after</table>
.</table> <sony> <p class="text_obisnuit">
. And I want only<sony>
<sony>
? Find:\A[\s\S]+</table>\s+(\S+)\s+<p class="text_obisnuit">[\s\S]+\z
and replace with:$1