search¶
- getmac.utils.search(regex, text, group_index=0, flags=0)[source]¶
Search for a regular expression in a string, and return the specified group. This is thin wrapper around
re.search()with some error handling.- Parameters:
- Return type:
- Returns:
The result, or
Noneif the parsing failed or nothing was specified to search.