def regexp_bool(regexp, flags=0):

  def transform_function(value):
    return bool(re.match(regexp, value, flags))

  return transform_function
Return a boolean if the expression matches with re.match.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/bulkload/transform.py/regexp_bool