I have a string like this
String text =
<p><span><span id="test">Meanwhile, the Cougars are coming off of a win against Eastern
Washington University in which they scored 88 points and had three players score at least
15 points. <span>Motum</span> recorded his fourth career double-double in the game as well.
</span></span></p>
<p><span>After Dexter Kernich-Drew, Royce Woolridge, and Will DiIorio were unable to
practice last Wednesday before the game against EWU, the team is healthy and ready to play
against Utah Valley. </span></p>
<p><span><span><span>Woolridge</span>, a <span>redshirt</span> sophomore transfer who has
started at guard in the first two games this season, scored seven points and had two assists
against EWU. He also had 10 points and three assists against Saint Martin’s. </span>
</span></p>
And I need to get rid of all 's that have no attributes and are just wraping content. The pattern i have so far is
text = Regex.Replace(text, @"</?span([^>]*|/)?>", "", RegexOptions.Compiled);
which just pulls all spans out leaving
<p>Meanwhile, the Cougars are coming off of a win against Eastern Washington University
in which they scored 88 points and had three players score at least 15 points. Motum
recorded his fourth career double-double in the game as well. </p>
<p>After Dexter Kernich-Drew, Royce Woolridge, and Will DiIorio were unable to practice
last Wednesday before the game against EWU, the team is healthy and ready to play
against Utah Valley. </p>
<p>Woolridge, a redshirt sophomore transfer who has started at guard in the first
two games this season, scored seven points and had two assists against EWU. He also had
10 points and three assists against Saint Martin’s. </p>
That is close but i needed the first
that had in it to look like
<p><span id="test">Meanwhile, the Cougars are coming off of a win against Eastern
Washington University in which they scored 88 points and had three players score at
least 15 points. Motum recorded his fourth career double-double in the game as well.
</span></p>
The question here is how to find nested spans that don't have attributes and remove them. I did have a few other tries that use back traces for the end tag but this has been the only one that has been the closest.