Mautic Community Forums

Segment regex with flags?

Your software
My Mautic version is: 4.0
My PHP version is: 7.4
My Database type and version is: tidb

Your problem

I want to do a case-insensitve regex for segment filter.

would be what i would expect to do elsewhere.

the regexp match filter in the segment filter screen does not expect the leading slash, or does it accept the trailing slash (it causes it to not match).

Anyone have a suggestion w/o getting into
([Cc][Ii]…) which is a PITA to type and manage.

e.g. how do i get the /i flag on the end of rthe regex?