ques1 = "A long sentence with long wwwhotmailcomlearnbyexample"gsub("\\b[[:alpha:]]{11,}\\b", "", ques1, perl=T)
Standard input is empty
[1] "A long sentence with long "
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!