def _tpl(val):
 match = _tpl_pattern.match(val)
 if match:
  return match.groups()[0]
 return None

def _tpl ( val ) : match = _tpl_pattern . match ( val ) if match : return match . groups ( ) [ 0 ] return None
return value within < > if possible .