isLowerCase

isLowerCase(text: String): Boolean

Checks if the text contains only lowercase characters.

Introduced in DataWeave version 2.2.0.

Parameters

Name Description

text

The input string.

Example

This example shows how isLowerCase behaves with different inputs and sizes.

Source

%dw 2.0
import isLowerCase from dw::core::Strings
output application/json
---
{
  "a": isLowerCase(null),
  "b": isLowerCase(""),
  "c": isLowerCase("  "),
  "d": isLowerCase("abc"),
  "e": isLowerCase("aBC"),
  "f": isLowerCase("a c"),
  "g": isLowerCase("a1c"),
  "h": isLowerCase("a/c")
}

Output

{
  "a": false,
  "b": false,
  "c": false,
  "d": true,
  "e": false,
  "f": false,
  "g": false,
  "h": false
}

isLowerCase(text: Null): Boolean

Helper function that enables isLowerCase to work with a null value.

Introduced in DataWeave version 2.2.0.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub