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

# 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._
