---
title: Contains & Does not Contain
slug: segment/contains-and-does-not-contain
docTags: 
createdAt: 2026-01-15T00:48:49.030Z
---

:::hint{type="info"}
These filter types are available for *Text, EmailAddress, Phone,&#x20;*&#x61;nd *Locale&#x20;*&#x66;ield types.
:::

## *Contain&#x20;*&#x66;ilter type

The *Contain* filter includes the given substring (a piece of text), anywhere within the value (i.e. *Does this field include this word or part of a word?*). This is especially helpful when:

- You’re identifying users from a specific domain.
- Filtering campaign names that include a keyword (e.g., “Q2\_Promo”).
- Looking for specific product tags.

## Example

You want to find all users whose email address contains “gmail”.

- **Field:** Email Address
- **Filter:** Contains “gmail”
- **Matches:**
  - jane.doe\@gmail.com ✅
  - user123\@gmail.co.uk ✅
  - bob\@yahoo.com ❌

![](https://support.deselect.com/hc/article_attachments/34587932862609)

### *Does not contains&#x20;*&#x66;ilter type

The *Does not contains&#x20;*&#x66;ilter excludes any record where the field includes the given substring (i.e. *Only show me data that doesn’t include this text*). This is especially helpful when:

- Removing test data.
- Excluding internal campaigns or naming conventions.
- Filtering out unwanted values or categories.

It’s like saying: “”

Example:

You want to exclude all users with "test" in their email.

- **Field:** Email Address
- **Filter:** Does Not Contain “test”
- **Result:**
  - realuser\@example.com ✅
  - testaccount\@demo.com ❌
  - tester\@company.com ❌

![](https://support.deselect.com/hc/article_attachments/34587923067793)

