def _match_shiny_tag(tag, text):
    exp = r'\[' + tag + r'\](\n)?(?P<tag_body>.*?)(\n)?\[End ' + tag +\
          r'\](\n)?'
    match = re.search(exp, text, re.I | re.S)
    if not match:
        raise SportError('Corrupted file: missing or malformed %s tag.' % tag)
    return match.group('tag_body')
Updates a external_segment.
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/sport_plugins/formatters/area_read_shiny_format.py/_match_shiny_tag--crossover with--dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/v2_0/client.py/Client.update_external_segment