def doi_from_url_string(url):
    logger.info(u"%s parsing url %s" %("doi_from_url_string", url))

    result = re.findall("(10\.\d+.[0-9a-wA-W_/\.\-%]+)" , url, re.DOTALL)
    try:
        doi = urllib.unquote(result[0])
    except __HOLE__:
        doi = None

    return(doi)
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpact/providers/provider.py/doi_from_url_string