---
schema_version: "1"
id: 3cdac4a5e581b90f51be4bc4c26f172c9809c295a4a59c91edef4314512c50ab
title: isAlpha
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-strings-functions-isalpha.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-strings-functions-isalpha
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c32f392b3b2d4446a623c4a398eeb3c6629cbc9f4ad16031837c717143bab8ac
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# isAlpha

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

## isAlpha(text: String): Boolean

Checks if the `text` contains only Unicode digits. This excludes digits, punctuation, and other
nonletter characters.

Note that the method does not allow for a leading sign, either positive or negative.

_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 `isAlpha` behaves with different inputs and sizes.

#### Source

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

#### Output

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

## isAlpha(text: Null): Boolean

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

_Introduced in DataWeave version 2.2.0._
