how to match this kind of line
<p><span class="font7" style="font-weight:bold;">text text text text </span></p>\r\n<p>
and at the same time avoid this kind of line
<p><span class="font7" style="font-weight:bold;">text text text text </span><span class="font7"> text text text <br/> text text text </span></p>\r\n<p>
the problem is that the tag span appears twice in the same line, i want to avoid that. only wanting if appears once in a line.
</span>
i have tried this regex
<p><span class="font7" style="font-weight:bold;">.+?(?:(?!.+?</span>.+?$)){2}</p>\r\n<p>
please help me, if possible in .net, perl or ruby flavor
greetings