Hello,
I am currently passing some HTML through to preg_match and I want to access all the HTML between two tags, however as the same tags may be repeated afterwards my current expression isn't working. For example, my expression at the moment is
<li>(.*)</li>
But as the HTML is like this:
<li><!-- A bunch of HTML in here --></li>
<li><!-- More HTML in here --></li>
It picks up everything between the first <li> and the very last </li>
I've been trying to think of a means of solving this for hours but I am well and truly stuck, does anyone have any idea on how I may be able to overcome this issue?
Thanks