Crate string_tools

Source

Functionsยง

get_all_after
get_all_after_strict
Return the part of a str which is after an occurence or return None if there is no occurence.
get_all_before
get_all_before_strict
Return the part of a str which is before an occurence or return None if there is no occurence.
get_all_between
get_all_between_strict
Return the part of a str which is between two str or return None if this is not possible.
get_idx_after_strict
Return the index of the end of an occurence. Return None if there is no occurence.
get_idx_before
Return the index of an occurence. If there is no occurence, the index is the len of the text.
get_idx_before_strict
Alias for the str find method.
get_idx_between_strict