firstLineNumberOf

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

Extension function on String.


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

Extension function on List<String>.