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

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