Помогите пожалуйста с регуляркой в PHP.
Мне необходимо удалить тег
<br>
только внутри секций
<ul>
и
<li>
не затрагивая остальной текст
<ul>
<br>
<li>Edit the Expression & Text to see matches. Roll over <br>matches or the expression </li>
<br>
<li>for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.</li>
<br>
</ul>
The side bar includes a Cheatsheet, full Reference,<br> and Help. You can also Save & Share with the Community, and view patterns you create or favorite in My Patterns.
<ul>
<br>
<li>Edit the Expression & Text to see matches. Roll over <br>matches or the expression </li>
<br>
<li>for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode.</li>
<br>
</ul>