def split_delimited_symbol(symbol):
 if (symbol in _delimited_symbol_default_triggers):
  return ('', '')
 symbol = symbol.upper()
 split_list = re.split(pattern=_delimited_symbol_delimiters_regex, string=symbol, maxsplit=1)
 company_symbol = split_list[0]
 if (len(split_list) > 1):
  share_class_symbol = split_list[1]
 else:
  share_class_symbol = ''
 return (company_symbol, share_class_symbol)

def split_delimited_symbol ( symbol ) : if ( symbol in _delimited_symbol_default_triggers ) : return ( '' , '' ) symbol = symbol . upper ( ) split_list = re . split ( pattern = _delimited_symbol_delimiters_regex , string = symbol , maxsplit = 1 ) company_symbol = split_list [ 0 ] if ( len ( split_list ) > 1 ) : share_class_symbol = split_list [ 1 ] else : share_class_symbol = '' return ( company_symbol , share_class_symbol )
takes in a symbol that may be delimited and splits it in to a company symbol and share class symbol .