Hello,
I have a regex I am struggling with.
Input:
<tr>
<td width="140" class="datahl2"> </td
>
<td width="90" class="datahl2b">Offense</
td>
<td width="90" class="datahl2b">Defense</
td>
<td class="datahl4b" width="90"> </td>
<td width="90" class="datahl2b">Offense</
td>
<td width="90" class="datahl2b">Defense</
td>
</tr>
<tr>
<td class="datahl2">
<strong>Points</strong><br
>
>1st third word Quarter<br>
2nd Quarter<br>
3rd Quarter<br>
4th Quarter
<td class="datacell">
<strong>96.4</strong><br>
24.7<br>
23.2<br>
21.9<br>
25.1</td>
Desired output:
Offense
Defense
Offense
Defense
Points
1st third word Quarter
2nd Quarter
3rd Quarter
4th Quarter
I tried the for several hours to construct a regex to do this, and came close, but it matches each individual word (ex: matches "2nd", then matches "Quarter", but not "2nd Quarter"). In general I am struggling with Repetition and Extended Regular expression but I am slowly learning.
Much thanks,
sapbucket
Start Free Trial