Skip to main content
Version: v4.23

is_alnum

Checks if a string is alphanumeric.

is_alnum(x:string) -> bool

Description

The is_alnum function returns true if x contains only alphanumeric characters and false otherwise.

Examples

Check if a string is alphanumeric

from {x: "hello123".is_alnum()}
{x: true}

See Also

is_alpha, is_numeric