I want to do gsub with lots of variations in spaces.
My text is
Yes, please periodically send me e-mail updates
I want to remove this sentence. But I have lots of variations of this in my corpus. For example, I have
Yes, please periodically send me e-mail updates
Yes, please periodically send me e-mail updates
Yes, please periodically send me e-mail updates
How can I remove these sentences with regular expression? I tried to specify every case like a following code.
gsub("Yes, please periodically send me e-mail updates", "", text)
gsub("Yes, please periodically send me e-mail updates", "", text)
gsub("Yes, please periodically send me e-mail updates", "", text)
I believe there is a better way to remove these sentences with one code. Thank you for any help!