Regex Targeting (Legacy)
The regex targeting logic gate allows your organization to specify with more control when a message should appear based on the url of specific pages.

Page url regex match logic gate

The page url regex match logic gate has two parameters your organization needs to specify - the regex argument and match condition
Parameter
Description
regex
the text to search for in the url. This could be a domain name or an exact page name
match
whether to display a message if the match is true (Yes) or false (No)

Display a message for domain

Your organization can specify a scenario where a message is shown for a particular page or specific domain. To specify this scenario:
    Add the page url regex logic gate to your scenario in the scenario builder
    Set the regex argument to the domain of interest
    Set the match condition to show the message if the regex argument and the url are found to match
Example
Your organization wants to display messages for the main domain, subdomains and subdirectories belonging to mydomain.com.
To display the message the regex argument should be set to.*mydomain.com.* and the match condition set toYes.

Exclude a message for specific page

Your organization can exclude messages for a specific page. With the page url regex logic gate:
    Add the page url regex logic gate to your scenario in the scenario builder
    Set the regex argument to the page where the message will not be shown
    Set the match condition to show the message where no match is found between the regex argument and the url
Example
There are privacy policy pages where your organization does not want the message to be shown, for example https://finance.mydomain.com/privacy-policy
To exclude the message the regex argument should be set to.*privacy-policy.* and the match condition set toNo.

Multiple condition regex match

The page url regex match logic gate can handle situations where more than one url can be compared. In the regex argument, each url needs to be listed and separated by the pipe character | .
Example
Your organization has created a specific message for finance properties in the English language. The three sites are:
    https://finance.mydomain.com/us
    https://finance.mydomain.com/uk
    https://finance.mydomain.com/au
To display the message the regex argument would be: https:\/\/finance.mydomain.com\/us|https:\/\/finance.mydomain.com\/uk|https:\/\/finance.mydomain.com\/au
The match condition would be set to Yes.
Due to the way regex expressions are parsed, the backslash character / in the url must always be preceded (or 'escaped') by a forward slash character \ everywhere in the string.
Last modified 4mo ago