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

# isAlphanumeric

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

## isAlphanumeric(String): Boolean

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

_Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later._

### 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(Null): Boolean

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