lastLineNumberOf

Returns the 0-based line number of the last line matching regex, or -1 if not found.

Extension function on String.


Returns the 0-based index of the last element matching regex, or -1 if not found.

Extension function on List<String>.