Advanced: Regex Segmentation

 Before you begin

As the title of this article suggests, this information is directed to advanced APSIS One users.

Make sure that you are familiar with the Segment Builder to make the most of this article.

If you are not an advanced used with knowledge about coding and/or regular expressions, please share this information with the users that will be working with regular expressions in APSIS One.


About Regex Segmentation

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

Segment Conditions in APSIS One's 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.

Take a look at our existing content on Segmentation to find out ways to create your Segment with all other available features, and take a look at Commonly Used Segments for ideas and inspiration.





When working with regular expressions in the Segment Builder, it is important that you consider the following limitations. These are the specifications as to what the APSIS One 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.




Was this article helpful?