AFI AFI

Does not match regex

Estimated reading: 1 minute Updated August 1, 2026

Does not match regex passes when the field fails the regular expression you supply. It is the inverse of Matches regex.

When to use it

Use it as a filter against a known-bad shape. Disposable email domains, URLs pasted into a name field, and script-injection attempts all share recognisable patterns.

How to configure it

  1. Open AFI → Integrations and edit your integration.
  2. Switch on Conditional Logic.
  3. Pick the field, choose Does not match regex, and enter the pattern you want to exclude.

Delimiters follow the same rules as Matches regex: optional, and needed only when you want flags such as i.

Examples

Goal Pattern
Reject disposable email domains `@(mailinator guerrillamail tempmail).`
Reject a URL in a name field https?://
Reject an all-numeric name ^d+$

Edge cases

An empty pattern passes. With nothing to exclude, the rule does not block anything.

An invalid pattern produces no match, so the integration is held. That is deliberate: a broken filter should not quietly stop filtering.

Related