Regex tester
Pattern
Input
<tr>
<td collspan="5"> <b>Какой-то текст</b>
</td>
</tr>
<tr><td></td></tr>
<tr><td>
</td></tr>
<tr><td>   </td></tr>
Options
Replacement
Click the context tab to see replacements.
3 matches found in about 0 milliseconds.
IndexPositionMatched String$1
061<tr><td></td></tr></td>
2 captures
  1. <td>
  2. </td>
181<tr><td>
</td></tr>
</td>
4 captures
  1. <td>
  2. whitespace
  3. whitespace
  4. </td>
2103<tr><td> </td></tr></td>
5 captures
  1. <td>
  2. whitespace
  3. whitespace
  4. whitespace
  5. </td>
<tr>
​<td collspan="5"> <b>Какой-то текст</b>
​</td>
​</tr>
​<tr><td></td></tr><tr><td>
​</td></tr><tr><td>   </td></tr>
  1. <tr>
    <td collspan="5"> <b>Какой-то текст</b>
    </td>
    </tr>
  2. </td>
  3. whitespace
  4. </td>
  5. whitespace
  6. </td>
  7. empty string