Version: v0.7.1 - Beta.  We welcome contributors & feedback.

String.isAlphaNumeric

isAlphaNumeric() -> boolean

Description

Return true if the string consists of all alphanumeric (a-zA-Z0-9) characters.

'Abc123'.isAlphaNumeric()
//= true

'Abc-123'.isAlphaNumeric()
//= false

See Also