%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")
}
isLowerCase
isLowerCase(text: String): Boolean
Checks if the text
contains only lowercase characters.
Introduced in DataWeave version 2.2.0.
Example
This example shows how isLowerCase
behaves with different inputs and sizes.