I would like to use a regexp to markup some text that may span any number of tags in HTML.
Ex. given the regex "brown\ fox.*lazy\ dog"
<div>The quick brown <a href="fox.html">fox</a></div>
<div>jumps over</div>
<div>the lazy <a href="dog.html">dog</a></div>
would be transformed to
<div>The quick <strong>brown </strong><a href="fox.html"><strong>fox</strong></a></div>
<div><strong>jumps over</strong></div>
<div><strong>the lazy </strong><a href="dog.html"><strong>dog</strong></a></div>
Having an empty <strong>
element between the close tags would be fine too. Using any Javascript libraries is fine. It can be browser specific.