Thought greed would work for me, but something went wrong. There is an approximate code from which it is necessary to capture the second tablet. Between the plates there may be another html code, including plates of another plan. Now even add for completeness example:
<p>Текст</p> <table> <tr> <td>разные данные</td> </tr> </table> <table> <tr> <td>Режим</td> </tr> <tr> <td>Тратата</td> </tr> </table> <p>Текст</p> <table> <tr> <td>Время</td> </tr> <tr> <td>Тратата</td> </tr> </table> Tried to do so ^
<table.+?Время.+?</table> Working example https://regex101.com/r/ltMG7J/2
I tried to do a positive peering back (?<=...) , but the service is tricked by the points / pluses inside the positive peering brackets.
Failed questions :
1) How can I choose a sign on the example of the regulars above? (plates can be many different, I can not bind to specific these 3 plates).
2) already solved the problem : how can I throw the second tablet (mode) at the end of the html?
.+?you do not work as you want, because the limiter isВремя, not</table>for it. - Visman(?:(?!</?table>).)+?====.+?but if there is no ahead</?table>? - Jean-Claude.+?A restriction has been introduced so that there is no<table>and</table>inside. Verification occurs when each character is selected, for which the group(?:.)+?entered(?:.)+?without feedback. - Visman