Goal: turn x into y; where x has an arbitrary number of spaces, \rs, and \ns.
x <- "some text, \r\n \r\n)more text"
y <- "some text)more text"
I've made a few attempts using str_replace_all():
str_replace_all(x, "[,][ \r\n][)]", "")
str_replace_all(x, ",[ \r\n])", "")