Im building a scraper for testing purposes (no, im not scraping website news) and I would like to eliminate every useless information from the source, like added links and texts in the bottom of it. Before those data, there is always a static paragraph, so I would like to match this paragraph and remove it, along with everything after it.
The static paragraph is always: <p><strong>Static text here</strong></p>
A sample, complete text that I want to catch using regex is:
<p><strong>Static text here</strong></p>
<p><strong>This is a paragraph</strong></p>
<p>This is another, a normal weight one</p>
<p><img src="test.png">Here's an image</p>
Another example could be:
<p><strong>Static text here</strong></p>
<p><img src="test.png">Here's an image</p>
<p>another example</p>
Any ideas? I generated this regex, but it matches only the first line, whereas I would like to match every possible line after the static text: https://regex101.com/r/xS873u/2