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

# isAlpha

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

## isAlpha(String): Boolean

Checks if the `text` contains only Unicode digits. A decimal point is not a Unicode digit and
returns `false`.

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

_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 `isNumeric` 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(Null): Boolean

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