Replace All Occurrences of a Pattern

Description

A convenience function. Calls either stri_replace_all_regex, stri_replace_all_fixed, or stri_replace_all_charclass, depending on the argument used.

Unless you are very lazy, please call the underlying functions directly for better performance.

Usage

1
stri_replace_all(str, replacement, ..., regex, fixed, charclass)

Arguments

str

character vector of strings to search in

...

additional arguments passed to the underlying functions

regex

character vector; regular expressions

fixed

character vector; fixed patterns

charclass

character vector; identifiers of character classes

replacement

character vector of strings to replace with

Value

character vector

See Also

Other search_replace: stri_replace_all_charclass, stri_replace_all_charclass, stri_replace_first_charclass, stri_replace_first_charclass, stri_replace_last_charclass, stri_replace_last_charclass; stri_replace_all_fixed, stri_replace_all_fixed, stri_replace_first_fixed, stri_replace_first_fixed, stri_replace_last_fixed, stri_replace_last_fixed; stri_replace_all_regex, stri_replace_all_regex, stri_replace_first_regex, stri_replace_first_regex, stri_replace_last_regex, stri_replace_last_regex; stri_replace_first; stri_replace_last; stri_replace; stringi-search

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.