> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/modeling/filters/operators/ends-with",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# ends_with

> Filters string fields for values that end with a specified substring.

Filters string fields for values that end with a specified substring. Returns rows where the field value ends with the specified suffix.

Can be used with [`case_insensitive`](/modeling/filters/operators/case-insensitive) to perform case-insensitive matching.

## Syntax

```yaml theme={null}
<string_field>:
  ends_with: <suffix>
```

## Properties

<ParamField path="string_field" type="string" required>
  The string field to filter on, specified in the format `view_name.field_name`.
</ParamField>

<ParamField path="ends_with" type="string" required>
  The suffix string to match. Returns rows where the field value ends with this substring.
</ParamField>

<ParamField path="case_insensitive" type="boolean" default="false">
  When set to `true`, performs case-insensitive matching. Defaults to `false` (case-sensitive) if omitted.
</ParamField>

## Examples

```yaml title="Matches: blobby@blobsrus.com, blob.ross@blobsrus.com, etc." theme={null}
users.email:
  ends_with: @blobsrus.com
```

```yaml title="Matches: Everything but @gmail.com emails" theme={null}
users.email:
  not_ends_with: @gmail.com
```

```yaml title="Matches: blobsrus.com, BlobRoss.com, etc." theme={null}
domains.url:
  ends_with: .com
  case_insensitive: true
```
