I am attempting to clean away any one or two letter words from a text passage. This was my first thought
gsub(\" [a-zA-Z]{1,2} \", \" \", \"a ab abc B BB BBB
Use the below Perl regex .
x <- gsub("\\s*(?