Skip to main content
Version: Next

is_printable

Checks if a string contains only printable characters.

is_printable(x:string) -> bool

Description

The is_printable function returns true if x contains only printable characters and false otherwise.

Examples

Check if a string is printable

from {x: "hello".is_printable()}
{x: true}

See Also

is_alnum, is_alpha