str_nth_instance_indices(string, pattern, n)str_first_instance_indices(string, pattern)
str_last_instance_indices(string, pattern)
A character vector. These functions are vectorized over this argument.
A character vector. Pattern(s) specified like the pattern(s)
in the stringr package (e.g. look at stringr::str_locate()
). If
this has length >1 its length must be the same as that of string
.
Then \(n\) for the \(n\)th instance of the pattern.