String

Constants

ascii_letters

The concatenation of the ascii_lowercase and ascii_uppercase constants

ascii_lowercase

The lowercase letters ‘abcdefghijklmnopqrstuvwxyz’.

ascii_uppercase

The uppercase letters ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’.

digits

The string ‘0123456789’.

hexdigits

The string ‘0123456789abcdefABCDEF’.

octdigits

The string ‘01234567’.

printable

String of ASCII characters which are considered printable. This is a combination of the ascii_letters, digits, punctuation and whitespace constants.

punctuation

String of ASCII characters which are considered punctuation characters in the C locale. !”#$%&’()*+,-./:;<=>?@[]^_`{|}~

whitespace

The whitespace characters ‘ \t\n\r\v\f’.