---
schema_version: "1"
id: 3309fd6e56800df4044235da38a720b912364ff0ed7436b414299ff9e2c507bf
title: isAlpha
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-strings-functions-isalpha.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-strings-functions-isalpha
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 871abe04e85598be1cded6d92d8d33ffd43311b39bc9aef1ea4f971028d941c0
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

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