Top index Wirbel home

::rstrip

string.rstrip() - remove white space at right side
string.rstrip(string chars) - remove characters from string at end

string.rstrip() returns a copy of a with all white space at the end of a removed.

string.rstrip(string chars) removes all characters contained in the string chars at the end of astring. astring itself is not modified but a modified copy is returned.

Examples

"17.00".rstrip(".0") == "17"

See also

lstrip, strip