Strings & Characters Functions

ascii_lettersReturns the concatenation of all the alphabetical letters in lowercase and uppercase. (string).
ascii_lowercaseReturns the concatenation of all the alphabetical letters in lowercase. (string).
ascii_uppercaseReturns the concatenation of all the alphabetical letters in uppercase. (string).
capwordsReturns the capitalization of all the words (string).
digitsReturns the string '0123456789' (string).
hexdigitsReturns the string '0123456789abcdefABCDEF' (string).
matchReturns determines if the regex matches at the start of a string (re).
octdigitsReturns the string '01234567' (string).
patternReturns test (re).
printableReturns the string of ASCII characters which are considered printable (string).
punctuationReturns the string of ASCII characters which are considered punctuation characters (string).
searchReturns searches for a pattern match anywhere in the string (re).
splitReturns test (re).
whitespaceReturns the string ' \t\n\r\u000b\f' (string).
ascii_letters
Returns the concatenation of all the alphabetical letters in lowercase and uppercase. (string).
ascii_lowercase
Returns the concatenation of all the alphabetical letters in lowercase. (string).
ascii_uppercase
Returns the concatenation of all the alphabetical letters in uppercase. (string).
capwords
Returns the capitalization of all the words (string).
digits
Returns the string '0123456789' (string).
hexdigits
Returns the string '0123456789abcdefABCDEF' (string).
match
Returns determines if the regex matches at the start of a string (re).
octdigits
Returns the string '01234567' (string).
pattern
Returns test (re).
printable
Returns the string of ASCII characters which are considered printable (string).
punctuation
Returns the string of ASCII characters which are considered punctuation characters (string).
search
Returns searches for a pattern match anywhere in the string (re).
split
Returns test (re).
whitespace
Returns the string ' \t\n\r\u000b\f' (string).

© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top