A regular expression (regex or regexp) is a group of characters that you can use to match complex patterns in URLs. Within the Monetate platform, you can use regular expressions for pattern-matching or search-and-replace functions in Full-Page Test experiences, within content masking rules, within the conditions tab of the Builder tools, or in the optional inputs section of an action to specify which page an action should run.
Monetate uses Perl-style regular expressions, which aren't case-sensitive. The following parameters are recognized in regular expressions:
In Action Builder
When you create an action in Action Builder, you input regular expressions on the Conditions tab by selecting URL matches regular expression from the URL category in ADD CONDITION.
You can use the following regular expression on the to specify a content mask that only appears on URLs that end with
In Full-Page Test Experiences
For a Full-Page Test experience, you can use the following expressions:
- Location to test —
- Replacement page —
At the Experience Level
You can apply an action condition with a regular expression for an action at the experience level.
Here's an example of a regular expression used in an action condition added at the experience level:
This regex would match these URLs:
It wouldn't match these URLs:
In Target Builder
On the Conditions tab in Target Builder, you can input regular expressions that act as a filter for when the target should be evaluated.