import re


def make_regex_rule(pattern_text):
    """
    Create a punctuation rule based on a simple regex check.

    Arguments:
    pattern_text - A string representing a valid regular expression.

    Return:
    A function that considers a match of pattern_text as a hit.
    """
    pattern = re.compile(pattern_text)

    def _execute(text, found_fn):
        hit = False
        match = pattern.search(text)
        while match:
            hit = True
            found_fn(match.start())
            match = pattern.search(text, match.end())
        return hit

    return _execute