---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-input-filter-regex.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-input-filter-regex.md
  - href: en/concepts/divs/2/div-input-filter-regex.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-input-filter-regex
Filter based on regular expressions.

## Parameters
| Parameters | Description |
| --- | --- |
| `pattern` | <p>**string**</p><p>Required parameter.</p><p>Regular expression (pattern) that the entered value must match.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `regex`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "regex",
  pattern*: "string"
}
```
</details>
