How to select <span> some text </span>
excluding <p><span>some text </span></p>
using a RegEx?
For a example:
<p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur porttitor dignissim feugiat. Ut dui ligula,
<span>SELECT THIS ELEMENT, including span tags</span>,
bibendum sed nisi. Donec lectus justo, tempor ac mattis sit amet,
imperdiet at nibh. Maecenas ac laoreet felis. Vestibulum ultricies
mi in diam sagittis in molestie urna porta.</span></p>
I need select those kind of extra spans and replace or remove it.