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

String.charList

String.charList($listId) -> list

Description

Returns a predefined List of characters that can be used to validate strings.

listId         List of characters
-------        ------------------------

all            [digits] + [letters]
letters        [lettersLower] + [lettersUpper]
lettersLower   abcdefghijklmnopqrstuvwxyz
lettersUpper   ABCDEFGHIJKLMNOPQRSTUVWXYZ
digits         0123456789
hex            0123456789abcdefABCDEF
hexUpper       0123456789ABCDEF
hexLower       0123456789abcdef
octal          01234567

Example:

String.charList('letters').contains('t')
//= true

String.charList('hex')[12]
//= 'c'

See Also