iPost Categories create a taxonomy of click behavior allowing you to group contacts based on this data. Using Categories, you are then able to access these contacts within an easy-to-use filter group with Other system table in Dynamic Lists, Dynamic Data Tables, or Journey usage.

An usage example is to group click behavior for a URL with the name  brand of shoes as a type of shoe:

Expression Category Name
Exercise Shoe
Dress-up Shoe

In the above example, any click on in an email would be added to the “Exercise Shoe” Category and easily used in filtering to segment those contacts.

Notice the | (pipe) between the types of shoes. When used in a regular expression, the character becomes an OR operator. Looking at our example above, if a URL containing “adidas” OR “nike” OR “kswiss” is clicked, and the Exercise Show Category is used within a filter, that contact would be then be added to that audience..        

Creating a Category

To create a Category, please follow these steps.

  1. Click on the Add New Category button
  2. Enter the expression to the Insert Regular Expression field
  3. Enter the category name in the Category Name field
  4. Click Save

Once the Category has been created, it can then be used as filter criteria in a Dynamic List or Dynamic Data table to generate your audience.

Regular Expressions

Regular Expressions (regex) allow you to match a word or a pattern in a URL. They provide a concise and flexible means to match strings of text, such as specific characters, words, or pattern of characters. The simplest regular expression is one that has no special characters in it. For example, the regular expression hello matches hello and nothing else. Nontrivial regular expressions use certain special constructs so that they can match more than one string. For example, the regular expression hello|world contains the ” | “ alternation operator and matches either the hello or world.

Twelve characters have special meanings in regular expressions.  

Escape the next metacharacter
Match only the beginning of the string
Match any character
Match the end of the string
This is the regular expression equivalent of “OR”
( )
Grouping: place parentheses around multiple items to group them together
[ ]
Matches any character listed between the square brackets

For reference on how regular expressions can be used in matching operations, please refer to:

Below are some of the most popular regular expressions and syntax.

Metacharacter Examples

Matches xyz123 but not 123xyz
Matches 123xyz but not xyz123
Matches only xyz. There must be no other characters before or after it
Matches xyz! in "From abc to xyz!"
Matches "a" or "b" or "c" ... or "z"

Quantifiers (where “x” is a string of text)

Match x 0 or more times
Match x 1 or more times
Match x 1 or 0 times
Match exactly n instances of x
Match at least n instances of x
Match at least n instances of x but less than or equal to m instances

Quantifier Examples

Matches regardless of occurrences 0 to N times
Matches xy and yyyx
Matches colour or color
Matches xxy but not xy
Matches both xxy and xy
Matches xxy but not xxxxxy

Email Marketing Examples

Strings That Contain "special"

Example: special

This is a match:

This is not a match:

Strings Containing Either "Special" or "Discount"

Example: (Special|Discount)

This is a match:

This is not a match:

This is a match:

This is a match:

URLs Containing the Exact String "en" as a Parameter Value

Example:  .*=en.*

This is a match:

This is not a match:

Strings Containing Email Address

Example: [a-z0-9.%][a-z0-9.%+]*@[a-z0-9.]+[.]{1}([a-z0-9.]+\.)?[a-z]+

This is a match:[email protected]

This is not a match:

URLs With Values For at Least One of These Parameters: utm_source, utm_campaign

Example:  .*((utm_source=([^&\s]+))|(utm_campaign=([^&\s]))).*

This is a match:

This is not a match: