---
schema_version: "1"
id: 3a955e68dede7eed49e2ec3458fc512f9099dd3f1527ba01e521e66ca09192ce
title: isRegexType
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-types-functions-isregextype.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-types-functions-isregextype
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 445b290082e88d9cad11e2e5c1c9562d160865cd992e91d86e20e0031c00f91d
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# isRegexType

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## isRegexType(t: Type): Boolean

Returns `true` if the input is the Regex type.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>t</code></p></td><td><p>The type to check.</p></td></tr></tbody></table>

### Example

This example shows how `isRegexType` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Types
type ARegex = Regex
output application/json
---
{
   a: isRegexType(ARegex),
   b: isRegexType(Regex),
   c: isRegexType(Boolean),
}
```

#### Output

```Json
{
  "a": true,
  "b": true,
  "c": false
}
```
