def grep(requestContext, seriesList, pattern):
    regex = re.compile(pattern)
    return [s for s in seriesList if regex.search(s.name)]
Takes a metric or a wildcard seriesList, followed by a regular expression
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/grep