Please, how can I, using regex, select the text between an opening tag of a div or span and its corresponding closing tag, without confusing it with the closing of another element nested inside it?
I would like to remove "span" tags without causing errors, i.e. taking into account other "span" tags nested inside them, for example in:
Code:
<span class="txt">Lorem <span class="italic">ipsum</span> dolor</span>
Can this be done via regex with Sigil?
The best I know how to do so far is:
Search: <span class="txt">([^<]+)</span>
Replace: \1
Thanks for your help.