pystr_rfind: Find the highest index of a substring.

Description Usage Arguments Value References See Also Examples

Description

Return the higest index in the string where substring sub is found, such that sub is contained in the slice substr(str, start, end).

Usage

1

Arguments

str

A character vector.

sub

A character vector.

start

A numeric vector.

end

A numeric vector.

Value

A numeric vector. -1 indicates sub was not found.

References

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

See Also

pystr_find

Examples

1
2
3
pystr_rfind("abcdxyzabc", "abc")
pystr_rfind("abc", "xy")
pystr_rfind("abcxyzabc", "abc", 4)


Search within the pystr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.