def ExtractAllMatches(regex, text):
  match = re.findall(regex, text)
  if not match:
    raise NoMatchError('No match for pattern "{0}" in "{1}"'.format(
        regex, text))
  return match
Extracts all matches from a regular expression matched within 'text'.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/regex_util.py/ExtractAllMatches