mkt.databases.utils.try_except_split_concat_str

mkt.databases.utils.try_except_split_concat_str(str_in: str, idx1: int, idx2: int, delim: str = '-') str[source]

Split str_in on delim with exception handling.

Parameters:
  • str_in (str) – Input string

  • idx1 (int) – Starting index

  • idx2 (int) – Ending index

  • delim (str) – Delimiter to split on

Returns:

Concatenated string containing the strings split on delim from idx1:idx2

Return type:

str