mkt.databases.utils.return_list_match_indices

mkt.databases.utils.return_list_match_indices(str_in: str, list_in: list[str | list[str]]) list[int] | list | None[source]

Return list of indices where str_in matches entry or entries in list_in.

Parameters:
  • str_in (str) – Input string to check for matches in list_in

  • list_in (list[str | list[str]]) – List of string or list of list of strings to check for str_in match

Returns:

Returns index of matching entries in list

Return type:

list[int] | None