
Get line numbers
get_single_line_numbers.Rd
Given a character vector and a regular expression, return all lines of that vector that match the regular expression.
Examples
bookmark::get_single_line_numbers(
x = c("First line", "Second line", "Third line"),
regex = "d l"
);
#> [1] 2 3