rics.strings#

String utility methods for Python applications.

Functions

without_prefix(arg, prefix)

Remove prefix from the head of arg.

without_suffix(arg, suffix)

Remove suffix from the tail of arg.

without_suffix(arg: str, suffix: str) str[source]#

Remove suffix from the tail of arg.

without_prefix(arg: str, prefix: str) str[source]#

Remove prefix from the head of arg.