Is it possible to replace all matches between two sub strings in one regular expression?
My case is that I want to inject HTML after the li tag but only inside myList.
Before:
<ul class="myList">
    <li>List item</li>
    <li>List item</li>
</ul>
After (... would be the injected markup):
<ul class="myList">
    <li>...List item</li>
    <li>...List item</li>
</ul>
Any help would be great, thanks.
` elements on the page? `4.` What if the `- ` element contains a `<` character, e.g. a ``? ........
 
– Tom Lord May 09 '16 at 16:08