Mautic Community Forums

Regexp what means?

Hi guys someone can explain me the use of:

  1. like
  2. regexp

    in the filters of Dynamic Content?

    What mean like?

    How I can write a regexp? Is eg: field=>number? Or what???

    Thanks a lot

Hi guys someone can explain me the use of:

  1. like
  2. regexp
    in the filters of Dynamic Content?
    What mean like?
    How I can write a regexp? Is eg: field=>number? Or what???
    Thanks a lot

good question! I need to know this too.
In the date filter of smartlist this term is used and I can’t know what means.

Like is a sql keyword for example you can search using part of words or data

For example if you want all contact where firstname starts with Yan, you will choose Like Yan%
If you want all contact where name containing “nick” like %nick

if you want all composed prenom with “Mary” whatever the position, you will use like %Mary%

Regular expressions are a bit more complex but yet more powerful.
Check for example http://www.regular-expressions.info/examples.html

Very good! thanks @Yannick038 !