find_first_regex_line function

Find the first line that satisfies a regex