names <- c('Laars Anderson', 'Peter Grabowski')
text <- c('Laars Anderson needs to bla bla bla, reply from Peter Grabowski')
output <- c('needs to bla bla bla, reply from')
I'm using regex to clean up my text for text mining purpose. The text is mostly about email conversations with lots irrelevant words for the final analysis such as names, emails, etc.
I have the employee names list and want to use this list of names to remove their names from the text emails.
Thanks!