'Because the client really only wants the author to specify the
youtube key, that\'s all we send to and get from the client. The
problem is that the db stores the html markup as well (which, of
course, makes any site-wide changes to how we do videos next to
impossible.)'

@staticmethod
def parse_video_tag(raw_video):

    if (not raw_video):
        return None
    keystring_matcher = re.search('(?<=embed/)[a-zA-Z0-9_-]+', raw_video)
    if (keystring_matcher is None):
        keystring_matcher = re.search('<?=\\d+:[a-zA-Z0-9_-]+', raw_video)
    if keystring_matcher:
        return keystring_matcher.group(0)
    else:
        logging.warn(("ignoring    the    content    because    it    doesn't    not    conform    to    expected    pattern:    " + raw_video))
        return None
