master_parse/__init__.py
def _transform_match(lines: List[str], regex_list: Sequence[Pattern]) -> List[str]:
    """
    Transform or remove any line in lines that matches one of the regular
    expressions in the list.

    Args:
        lines (list[str]): A list of strings to check against the
            regular expression list.
        regex_list (list[_sre_SRE_Pattern]): A list of compiled regular
            expressions to match against.

    Returns:
        list[str]: A new list of strings with all of the lines that match
            regular expressions removed.
    """
    res = []
    for line in lines:
        m = _regex_list_match(line, regex_list)
        if m:
            remainder = m.group(2)
            if remainder:
                remainder = remainder.strip()
                if len(remainder) > 0:
                    res.append(remainder)
        else:
            res.append(line)
    return res

    Transform or remove any line in lines that matches one of the regular
    expressions in the list.

    Args:
        lines (list[str]): A list of strings to check against the
            regular expression list.
        regex_list (list[_sre_SRE_Pattern]): A list of compiled regular
            expressions to match against.

    Returns:
        list[str]: A new list of strings with all of the lines that match
            regular expressions removed.
    
Transform or remove any line in lines that matches one of the regular
expressions in the list.
Transform or remove any line in lines that matches one of the regular expressions in the list .
def _transform_match(lines: List[str], regex_list: Sequence[Pattern]) -> List[str]:
    res = []
    for line in lines:
        m = _regex_list_match(line, regex_list)
        if m:
            remainder = m.group(2)
            if remainder:
                remainder = remainder.strip()
                if len(remainder) > 0:
                    res.append(remainder)
        else:
            res.append(line)
    return res
def _transform_match ( lines : List [ str ] , regex_list : Sequence [ Pattern ] ) -> List [ str ] : res = [ ] for line in lines : m = _regex_list_match ( line , regex_list ) if m : remainder = m . group ( 2 ) if remainder : remainder = remainder . strip ( ) if len ( remainder ) > 0 : res . append ( remainder ) else : res . append ( line ) return res
Transform or remove any line in lines that matches one of the regular
expressions in the list.
Transform or remove any line in lines that matches one of the regular expressions in the list .
"""
    Transform or remove any line in lines that matches one of the regular
    expressions in the list.

    Args:
        lines (list[str]): A list of strings to check against the
            regular expression list.
        regex_list (list[_sre_SRE_Pattern]): A list of compiled regular
            expressions to match against.

    Returns:
        list[str]: A new list of strings with all of the lines that match
            regular expressions removed.
    """
A new list of strings with all of the lines that match
regular expressions removed.
A new list of strings with all of the lines that match regular expressions removed .
list[str]
lines
List[str]
A list of strings to check against the
regular expression list.
A list of strings to check against the regular expression list .
regex_list
Sequence[Pattern]
A list of compiled regular
expressions to match against.
A list of compiled regular expressions to match against .