import re


def _FileMatches(path, excl_regexps):
  """Returns true if the specified path matches none of the
  specified exclude regular expresions.
  """
  for r in excl_regexps:
    if re.match(r, path):
      return False
  return True