The string_utils module.

This module implements string functions.

Detailed Module Contents

The entire module is documented below.

Created on Wed Jul 28 12:20:38 2021

@author: Todd Jones

monc_utils.data_utils.string_utils.get_string_index(strings, substrings, exact=False)
Search for the first index in list of strings that contains substr string

anywhere or, if exact=True, contains an exact match.

Parameters:
  • strings (List of strings to be searched) –

  • substrings (List of strings to be found in strings) –

  • exact ((bool, optional) Whether to perform search for exact match) –

Returns:

tuple of integers

Return type:

first index of match, or None, if not found

@author: Todd Jones and Peter Clark