def replace_list ( items , match , replacement ) : return [ replace ( item , match , replacement ) for item in items ]
replace a list of strings from a text python
Replaces occurrences of a match string in a given list of strings and returns a list of new strings . The match string can be a regex expression .
def replace_list(items, match, replacement):
    """Replaces occurrences of a match string in a given list of strings and returns
    a list of new strings. The match string can be a regex expression.

    Args:
        items (list):       the list of strings to modify.
        match (str):        the search expression.
        replacement (str):  the string to replace with.
    """
    return [replace(item, match, replacement) for item in items]