def __get_contents_in_unit(self, unit):
    image_link = '_ANCHOR_LEFT_TAG_ +_ANCHOR_RIGHT_TAG_'
    unit = re.sub(image_link, ' ', unit)
    if re.match('^ *$', unit):
        return
    fragment_tag = '((?:_ANCHOR_LEFT_TAG_ .+?_ANCHOR_LEFT_TAG_ ){2,})'
    for fragment in re.split(fragment_tag, unit):
        (yield from self.__get_contents_in_fragment(fragment))
def __get_contents_in_unit(self, unit):
    image_link = '_ANCHOR_LEFT_TAG_ +_ANCHOR_RIGHT_TAG_'
    unit = re.sub(image_link, ' ', unit)
    if re.match('^ *$', unit):
        return
    fragment_tag = '((?:_ANCHOR_LEFT_TAG_ .+?_ANCHOR_LEFT_TAG_ ){2,})'
    for fragment in re.split(fragment_tag, unit):
        (yield from self.__get_contents_in_fragment(fragment))