I try to make a regex that only matches list elements over multiple lines with one <li></li>
tag.
For example:
<ul>
<li>
Test, Test
</li>
</ul>
this should match, but this:
<ul>
<li>
Test, Test
</li>
<li>
Test, Test
</li>
</ul>
should not.
I already have
<ul>(.*?)<li>(?!<li>)<\/li>(.*?)</ul>
but this don't have a match at all anymore.
Does anybody know how to achieve this?