pystr_rpartition: Partition a string from the right.

Description Usage Arguments Details Value References See Also Examples

Description

Split the string at the last occurrence of sep, and return a list of character vectors containing the part before the separator, the separator itself, and the part after the separator.

Usage

1

Arguments

str

A character vector.

sep

A character string.

Details

If the separator is not found, return a character vector containing two empty strings, followed by the string itself.

Value

A character vector.

References

https://docs.python.org/3/library/stdtypes.html#str.rpartition

See Also

pystr_partition

Examples

1
pystr_rpartition("onetwothreeonetwothree", "two")

pystr documentation built on April 15, 2017, 12:30 a.m.