jinja2.runtime.Markup.rsplit

Markup.rsplit([sep[, maxsplit]]) → list of strings[source]

Return a list of the words in S, using sep as the delimiter string, starting at the end of the string and working to the front. If maxsplit is given, at most maxsplit splits are done. If sep is not specified, any whitespace string is a separator.