fork download
  1. x <- "My name is Mr. Aishwarya. I live in the U.K. and want to go to U.S. Us will go to Australi. Who else wants to go to U.S.A. ? My wife's name is Ruchika Bhatt. "
  2. strsplit(x, "\\b(?:Mr|U\\.S|U\\.K)\\.(*SKIP)(*F)|\\.\\s+", perl=TRUE)
Success #stdin #stdout 0.22s 38320KB
stdin
Standard input is empty
stdout
[[1]]
[1] "My name is Mr. Aishwarya"                                        
[2] "I live in the U.K. and want to go to U.S. Us will go to Australi"
[3] "Who else wants to go to U.S.A"                                   
[4] "? My wife's name is Ruchika Bhatt"