Im trying to made a regex , but i waste a lot of time and cannot be sucessufully, Here is my input and output expected.
Input:
<table>
<tr>
<td colspan="4" class="fundo_subtitulo">MAX 250</td>
</tr>
<tr>
ANY DATA
</tr>
<tr>
ANY DATA
</tr>
<tr>
<td>MAX 400</td>
</tr>
<tr>
ANY DATA
</tr>
<table>
Expected Output
find()
<tr>
<td colspan="4" class="fundo_subtitulo">MAX 250</td>
</tr>
<tr>
ANY DATA
</tr>
<tr>
ANY DATA
</tr>
next
<tr>
<td>MAX 400</td>
</tr>
<tr>
ANY DATA
</tr>
Conditions: - Word start with MAX.