Skip to contents

Find the index of the last line that matches a regex

Usage

find_last_regex_line(lines, regex)

Arguments

lines

lines of text

regex

regex string

Value

index of the line

Author

Richèl J.C. Bilderbeek