Capture only 1 line of text from paragraph

How would i capture just the "Compatibility: OSX 10.11 or later 64-bit"

from this paragraph on a website i am scraping

<p class=""><strong class="">Compatibility: </strong> OS X 10.11 or later 64-bit<br>
<strong>Homepage</strong> <a href="" rel="noopener" target="_blank"></a></p>

currently i am using
[itemprop='articleBody'] p:nth-of-type(4)

and it is capturing the whole block of paragraphs, i only want the compaitibility paragraph though.

I have tried everything including regex to only capture the compaitibility paragrah, but i have failed so far to achieve this.

Thank you in advanced for any help.

If a text on the whole pages range of the selector you use - the same, then you can use RegEx to return only the desired part of text. Let say all words until word "Homepage" starts... IT's not too complicated though...

lol is for Mwah ! iv been trying all day still cant figure a regex. my last resort is to capture it anyway and use sql query to remove it..

Here is your RegEx rule:


i shall give it a try now, thank you

If the page always has this HTML structure, then something like this should work:

Type: Text
Selector: p:has(strong):contains('Compatibility')
Regex: Compatibility.+

Thank, you. i have another question if its in your expertise. more a server ( website ) issue though.

please check my threads

So how do i do that to capture everything after the word ? ( Please )

I can't get your words.... What you mean...?