docs-v2/content/v2.0/reference/flux/stdlib/strings/isletter.md

781 B

title description aliases menu weight related
strings.isLetter() function The strings.isLetter() function tests if a single character string is a letter (a-z, A-Z).
/v2.0/reference/flux/functions/strings/isletter/
v2_0_ref
name parent
strings.isLetter Strings
301
/v2.0/reference/flux/stdlib/strings/isdigit/

The strings.isLetter() function tests if a single character string is a letter (a-z, A-Z).

Output data type: Boolean

import "strings"

strings.isLetter(v: "A")

// returns true

Parameters

v

The single character string to test.

Data type: String

Examples

Filter by columns with single-letter values
import "strings"

data
  |> filter(fn: (r) => strings.isLetter(v: r.serverRef))