Top index Wirbel home

::rbisplit

string.rbisplit(delim) - split string into exactly two parts, from the right

string.rbisplit(delim) splits a string s into exactly two parts at the last occurance of delimiter delim and returns a pair of strings. If the delim d is not contained in s then the second return string will be emtpy. rbisplit is a conveniance function usefull for tuple assignment. The delimiter can either be a string or a character.

Examples

left,right = "one|two".bisplit('|')

See also

bisplit, split