Skip to main content
Regex Segmentation
Updated over a year ago

About Regex Segmentation

If you are a more advanced user familiar with coding and/or regular expressions, you may want to use the Regex Match Type in the Segment Builder.

In brief, a regular expression, or regex, is a method to define a search pattern by using a sequence of characters.

Segment Conditions in the Segment Builder allow you to use regex as a match type for Text Attributes (like First Name) and Text-based Event data (Like address within Sign-up bar - Submit Event).

To use regular expressions successfully, users require previous knowledge in how regex works, which characters to input and how the Segment Conditions will relate to each other whenever regex is involved. Therefore, we strongly recommend that only advanced users with this knowledge use this method within their Segments.

Limitations

When working with regular expressions in the Segment Builder, it is important that you consider the following limitations in order to successfully use the Regex Match Type. These are the specifications as to what the Segment Builder allows:

  • 1 and 2 bit unicode characters.

  • [abc] , [^abc] - ranges.

  • [a-q] , [A-Q] , [0-7] , [^a-q] , [^A-Q] , [^0-7] - "between" ranges.

  • (a|b) - alternatives.

  • . - any character except new line.

  • * , + , {n,m} , {n,} , {n} - quantifiers.

  • ^ , $ - beginning and end of the string.


What's Next?

Did this answer your question?