In JavaScript/JQuery I want to get all the text that is seen between some other text. For example, if the HTML document had:
<b class="blah">Blah: Some Text 1</b>
<div id="foo"><b class="blah">Blah: Some Text 2</b>
I’d like to get an array that has ‘Some Text 1’ and ‘Some Text 2’ since they are both in between ‘<b class="blah">Blah:‘ followed by a ‘</b>‘
Since you mention jQuery, just select all the right nodes and check their text. You can put a regex in here if you want, but it’s not needed.
Or with a string of HTML