%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")
}
DataWeave
isLowerCase
isLowerCase(text: String): Boolean
Checks if the text
contains only lowercase characters.
Introduced in DataWeave version 2.2.0.
Parameters
Name | Description |
---|---|
|
The input string. |
Example
This example shows how isLowerCase
behaves with different inputs and sizes.
Source
Output
{
"a": false,
"b": false,
"c": false,
"d": true,
"e": false,
"f": false,
"g": false,
"h": false
}
JSON
isLowerCase(text: Null): Boolean
Helper function that enables isLowerCase
to work with a null
value.
Introduced in DataWeave version 2.2.0.