def regexp_to_list(pattern):
 @none_if_empty
 def regexp_to_list_lambda(value):
  result = re.findall(pattern, value)
  if (result == []):
   return None
  return result
 return regexp_to_list_lambda

def regexp_to_list ( pattern ) : @ none_if_empty def regexp_to_list_lambda ( value ) : result = re . findall ( pattern , value ) if ( result == [ ] ) : return None return result return regexp_to_list_lambda
return function that returns a list of objects that match the regex .