Code: Select all
<html>.....
<!--ASDF-->
<table>
<tr>
<td>TEST</td>
</tr>
</table>
<!--FDSA-->
......
</html>preg_match("/\<!--ASDF--\>\s*(.*?)\s*\K!--FDSA--\>/",$string,$result);
Moderator: General Moderators
Code: Select all
<html>.....
<!--ASDF-->
<table>
<tr>
<td>TEST</td>
</tr>
</table>
<!--FDSA-->
......
</html>