def get_group(name, match_obj):
 try:
  obj = match_obj.group(name)
 except:
  return ''
 else:
  if (obj is not None):
   return obj
  else:
   return ''

def get_group ( name , match_obj ) : try : obj = match_obj . group ( name ) except : return '' else : if ( obj is not None ) : return obj else : return ''
get group information .