ShopMagic supports regular expressions (REGEX)

You can choose matches regex option in various filters.

The Regex matcher is using PCRE - Perl Compatible Regular Expressions internally. It means that you can use any expression from https://www.php.net/manual/en/reference.pcre.pattern.syntax.php The wrapping "" is an example delimiter. Technically, the expression can be surrounded by any non-alphanumeric, non-backslash, non-whitespace character. So it could be /one|another/ or one|another

For example to set filter to exclude all email addresses containing "gmail" AND "googlemail", you can use below setting:

^((?!(gmail|googlemail)).)*$

It is using a negative look-ahead subpattern and should work just fine as /^((?!(gmail|googlemail)).)*$/

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us