import re


def assemble_url(
    baseurl: str, 
    link_style: str, 
    info_dict: dict,
    extension: str = "html"
):
    """
    Create URL of a post based on the link style and info about it.
    """
    res_url = baseurl
    matches = re.findall(":([a-z_]+)", link_style)
    for match in matches:
        if match in info_dict:
            res_url += '/' + str(info_dict[match])
    
    res_url += "." + extension
    return res_url