Module ascii

Source
Expand description

Functions for ASCII character classes

Functions§

alphabetic
A function to match any alphabetic character ([A-Za-z])
alphanumeric
A function to match any alphanumeric character ([0-9A-Za-z])
ascii
A function to match any ascii digit ([\x00-\x7F])
blank
A function to match blank characters ([\t ])
control
A function to match control characters ([\x00-\x1F\x7F])
graphical
A function to match graphical characters ([!-~])
hexdigit
A function to match any digit that would appear in a hexadecimal number ([A-Fa-f0-9])
lowercase
A function to match any lowercase character ([a-z])
non_alphabetic
A function to match any non-alphabetic character ([^A-Za-z])
non_alphanumeric
A function to match any non-alphanumeric character ([^0-9A-Za-z])
non_ascii
A function to match any non-ascii digit ([^\x00-\x7F])
non_blank
A function to match non-blank characters ([^\t ])
non_control
A function to match non-control characters ([^\x00-\x1F\x7F])
non_graphical
A function to match non-graphical characters ([^!-~])
non_hexdigit
A function to match any digit that wouldn’t appear in a hexadecimal number ([^A-Fa-f0-9])
non_lowercase
A function to match any non-lowercase character ([^a-z])
non_printable
A function to match unprintable characters ([^ -~])
non_punctuation
A function to match non-punctuation ([^!-/:-@\[-{-~]`)
non_uppercase
A function to match any non-uppercase character ([^A-Z])
printable
A function to match printable characters ([ -~])
punctuation
A function to match punctuation ([!-/:-@\[-{-~]`)
uppercase
A function to match any uppercase character ([A-Z])