trim_anything(string, pattern, side = "both")str_trim_anything(string, pattern, side = "both")
A character vector.
The pattern to look for.
The default interpretation is a regular expression, as described in stringi::about_search_regex.
To match a without regular expression (i.e. as a human would), use
coll(). For details see stringr::regex().
Which side do you want to trim from? "both" is the
default, but you can also have just either "left" or "right"
(or optionally the shortened "b", "l" and "r").