---
schema_version: "1"
id: 239d91f86c77401d9ba20376aa47eb47205cbdca048f0964d11ee144287d9d2d
title: isAlphanumeric
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-strings-functions-isalphanumeric.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-strings-functions-isalphanumeric
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b84e6a2597d17b6e5227dd2bcb58ef7fbb111865035780e6f7595d10afa10145
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# isAlphanumeric

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

## isAlphanumeric(text: String): Boolean

Checks if the `text` contains only Unicode letters or digits.

_Introduced in DataWeave version 2.2.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>text</code></p></td><td><p>The input string.</p></td></tr></tbody></table>

### Example

This example shows how `isAlphanumeric` behaves with different inputs and sizes.

#### Source

```DataWeave
%dw 2.0
import isAlphanumeric from dw::core::Strings
output application/json
---
{
  "a": isAlphanumeric(null),
  "b": isAlphanumeric(""),
  "c": isAlphanumeric("  "),
  "d": isAlphanumeric("abc"),
  "e": isAlphanumeric("ab c"),
  "f": isAlphanumeric("ab2c"),
  "g": isAlphanumeric("ab-c")
}
```

#### Output

```JSON
{
  "a": false,
  "b": false,
  "c": false,
  "d": true,
  "e": false,
  "f": true,
  "g": false
}
```

## isAlphanumeric(text: Null): Boolean

Helper function that enables `isAlphanumeric` to work with a `null` value.

_Introduced in DataWeave version 2.2.0._
