find_last_regex_line function

Find the index of the last line that matches a regex