neuralib.util.utils.filter_matched

neuralib.util.utils.filter_matched(pattern, strings)[source]

Filter a list of string element that match the pattern.

Parameters:
  • pattern (str) – Regular expression

  • strings (list[str]) – List of strings to find the pattern

Returns:

Return type:

list[str]