Regex help to extract text from HTML (dynamic selectors)

Hi everyone !

I want to scrape a shopstore, but CSS selectors are diffrents on each page.

One of the solution that coms in minde is to use regex but for someone like me without programming backgound it's a little hard

Please is there any regex epression that I can use to extract the following text (title value) :

galaxy
space

HTML elements :

<a target="_self" href="/shop/galaxy" title="galaxy" class="styles__button--2oYLO styles__neutral--9kdyo styles__strong--U_14i styles__small--3dqom"><span class="styles__children--21o3C">galaxy</span></a>
.....
.....
<a target="_self" href="/shop/space" title="space" class="styles__button--2oYLO styles__neutral--9kdyo styles__strong--U_14i styles__small--3dqom"><span class="styles__children--21o3C">space</span></a>

Please help and thanks in advance

@mmigo Hello. How exactly the final data output should look like?

Could you provide us with the targeted URL, please?

Element attribute should be suitable for this.

Type: Element attribute
Selector: a[href^='/shop']
Attribute name: title

image