import re


def get_id(xkcd_link: str) -> int:
    """
    Exctract comic id from xkcd link
    """
    match = re.search(r"\d+", xkcd_link)
    if match:
        return int(match.group())
    else:
        return 0