Page View of a URL that matches regular expression

I’m building a list of everyone who has viewed at least one of some specific campaign-related pages.

I created a list and in the Filters tab I selected the "Page View" as filter category, with the option “has at least one Page View of a URL that matches regular expression” selected.

Let’s say the list is:

This expression is not working (blog\/blog\-post\-1|landing\-page\/\?utm\-campaign=CAMPAIGN1|another\-landing\-page).

What I want to do with this expression:

  • we have many subdomains (www, info, etc.) so it must work on anything before the text match
  • it also must match all URLs with any text after those values

Any tips? Thanks!

Hi @CleberAlexandre,
Thank you for reaching out to the Hubspot Community, it’s a pleassure to e-meet you (-:
Taking a look into your use case and the list filter that you’ve entered, it doesn’t look like it quite matches with the syntax that we’d see in regex e.g. ([A-Z])\w+\g).

Here’s a regex tool that I use to build and test Regex expressions - https://regexr.com/, which is free-to-use!

For now, without access into your portal, I wouldn’t be able to directly test these expressions with and for you, but I hope the above gives you a head start for now!

------

Find my answer helpful? Support the community by indicating it as the solution.

Click here if you wish to find out more on how you can Get That Bread better, faster, with our specially curated services.

Daryl

Chief Breadsmith

GetThatBread