Return the lowest index in s where the substring sub is found. Returns -1 if the fragment is not found.
Return the lowest index in s where the substring sub is found such that sub is wholly contained in between the 'start' and 'end' index. Returns -1 if the fragment is not found.
Return the number of (non-overlapping) occurrences of substring sub in string.
Return the number of (non-overlapping) occurrences of substring sub contained in between the 'start' and 'end' index. Defaults for start and end.
Return a list of the words of the string s. If the optional second argument sep is absent or None, the words are separated by arbitrary strings of whitespace characters (space, tab, newline, return, formfeed). If the second argument sep is present and not None, it specifies a string to be used as the word separator. The returned list will then have one more item than the number of non-overlapping occurrences of the separator in the string. If maxsplit is given, at most maxsplit number of splits occur, and the remainder of the string is returned as the final element of the list (thus, the list will have at most maxsplit+1 elements). If maxsplit is not specified or -1, then there is no limit on the number of splits (all possible splits are made).
Delete all characters from s that are in deletecharacters (if present), and then translate the characters using table, which must be a 256-character string giving the translation for each character value, indexed by its ordinal. If table is None, then only the character deletion step is performed.
Return a copy of a string with all occurrences of substring old replaced by new. If the optional argument max is given, the first 'max' occurrences are replaced.
Return true if string starts with the prefix, otherwise return false. prefix can also be a tuple of prefixes to look for. With optional start, test string beginning at that position. With optional end, stop comparing string at that position.
Return true if the string ends with the specified suffix, otherwise return false. suffix can also be a tuple of suffixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position.