6.2. cpforager.misc.grep_pattern
- cpforager.misc.grep_pattern(strings, pattern)
Extract array of strings that contain the pattern.
- Parameters:
strings (array(str)) – array of strings.
pattern (str) – pattern to be found in strings.
- Returns:
the array of strings that contain the pattern.
- Return type:
array(str)
Function useful to sort file names based on a pattern.