HTML Extract - use "begin with"


I’m having issues with an extract on next.js sites as the CSS selector is generated on each deploy.

The part I am trying to extract will however begin with the same string. But I cannot figure out how to allow wildcard on the end of the string.

E.g. Price_container__i6IcT where I get null when just entering Price_container__

Any ideas?

Hi @ericsonmartin, something like p[class^='Price_container__'] would do the job if you wanted to fetch p elements with CSS classes starting with Price_container__.

Here’s a quick example workflow extracting the p elements coming with automate-without-limits... classes from the n8n website:


Check out Attribute selectors - CSS: Cascading Style Sheets | MDN for more details.

Hope this helps!

As always, thanks for the awesome replies!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.