Would you consider to nativelly implement a capability of vectorization of patterns and replacements in str_replace_all by default?
Something equivalent to
str_replace_all_vec <- function(string, pattern, replacement) {
tmp_string <- string
for (i in seq_along(pattern)) {
tmp_string <- str_replace_all(tmp_string, pattern[i], replacement[i])
}
tmp_string
}
to apply the replacements sequentially?