How to create a segment by matching part of a string

Matching part of a string

There are 5 filters you can use for matching part of a string

The first three filters (starts with, ends with, contains) match strings as you enter it. The ‘like’ filter is for advanced users - you can specify which type you want to use with % character:

A few notes for text filters:

You can use regular expressions in a regexp filter. Mautic recognises all common operators like | for OR (first string|second string), character sets ([0-9], [a-z0-9] etc.), repetitions (+, *, ?) and more. You have to escape special characters with \ if you want to use them as matching characters.

For more information about Regex: Learn more about regex here!

Article Number: 17
Author: Jul 11, 2022
Last Updated: Jul 11, 2022
Author: Leon Elias-Oltmanns [[email protected]]

Online URL: