Skip to content

isAlpha

isAlpha(string) → boolean · String

Returns true if the string contains only alphabetic characters (A-Z, a-z, Unicode letters).

  • string (required): string to test
bash
echo '{"name": "Alice"}' | utlx -e 'isAlpha($input.name)'
# true
utlx
{
  validName: isAlpha($input.firstName),
  hasSpecialChars: !isAlpha($input.input)
}

Released under AGPL-3.0.