(requestContext, seriesList, pattern)
return [s for s in seriesList if regex.search(s.name)]
Takes a metric or a wildcard seriesList, followed by a regular expression
  in double quotes.  Excludes metrics that don't match the regular expression.

  Example:

  .. code-block:: none

    &target=grep(servers*.instance*.threads.busy,"server02")
Takes a metric or a wildcard seriesList, followed by a regular expression
  in double quotes.  Excludes metrics that don't match the regular expression.
Takes a metric or a wildcard seriesList followed by a regular expression in double quotes . Excludes metrics that don t match the regular expression .
def grep(requestContext, seriesList, pattern):
  """
  Takes a metric or a wildcard seriesList, followed by a regular expression
  in double quotes.  Excludes metrics that don't match the regular expression.

  Example:

  .. code-block:: none

    &target=grep(servers*.instance*.threads.busy,"server02")
  """
  regex = re.compile(pattern)
  return [s for s in seriesList if regex.search(s.name)]
def grep ( requestContext , seriesList , pattern ) : regex = re . compile ( pattern ) return [ s for s in seriesList if regex . search ( s . name ) ]