def is_legal_resource_base_name(name):
 if (name is None):
  return False
 m = BASE_NAME_LEGAL_CHARS_P.match(name)
 return ((m is not None) and (m.group(0) == name))

def is_legal_resource_base_name ( name ) : if ( name is None ) : return False m = BASE_NAME_LEGAL_CHARS_P . match ( name ) return ( ( m is not None ) and ( m . group ( 0 ) == name ) )
validates that name is a legal resource base name .