import re


def replace_variables(text: str, variables: dict):
    """Replaces all variables (declared as "{{my_variable}}")
    in a text with variables provided.

    Variables that are not provided are left untouched in the text.
    """

    for match in re.findall(r"\{\{(.*)\}\}", text):
        if match in variables:
            replacement = str(variables[match])
            text = text.replace("{{" + match + "}}", replacement)
    return text