- split_by_order(s: str, separators: Iterable[str], keep: bool = True) List[str] #
Split string by a a list of substrings, each used once as a separator.
the string to split
list of substrings to split by
- keepbool , default: True
whether to keep the separators in list as well. Default is True.
list of substrings