import re


def find_substring_or_regex_in_lines(substr, lines):
    """Return True iff substr can be found in any line of lines."""

    prog = re.compile(substr)

    return any(prog.search(line) for line in lines)