I have an HTML document that has a series of items contained within strong tags each one followed by a random amount of text
Code: Select all
<strong>title 1</strong><br>
apple<br>orange<br>
<strong>title 2</strong><br>
pear<br>grape<br><item3<br>Apricot<br>
<strong>title 3</strong><br>
banana<br>
<strong>title 4</strong><br>
cranberry<br>durian<br>cherry<br>Let’s say, for example, I want to capture the content contained in the strong tags that immediately proceed a match on the word durian.
Any help would be greatly appreciated.