def _split_string(text):
 m = ITEM_REGEX.match(text)
 try:
  parts = m.groupdict()
 except AttributeError:
  warn('Cannot parse header or footer so it will be ignored')
  parts = {'left': '', 'right': '', 'center': ''}
 return parts

def _split_string ( text ) : m = ITEM_REGEX . match ( text ) try : parts = m . groupdict ( ) except AttributeError : warn ( 'Cannot parse header or footer so it will be ignored' ) parts = { 'left' : '' , 'right' : '' , 'center' : '' } return parts
split the combined string into left .