import re


def control_regex(value: str, re_str: str):
    """
    Controls if the string match the regex passed

    Parameters
    ----------
    value : str
        string to analyze.
    re_str : str
        regex string to test.

    Returns
    -------
    bool
        True or False.
    """
    if re.compile(re_str).match(value):
        return True
    return False