Remove All Substrings Matching the Pattern

str_remove_all(x, pattern)

Arguments

x

vector of character

pattern

regular expression agains which the strings in x are matched

Value

x with elements in which substrings matching the pattern are removed