fork(2) download
  1. tr <- "a ab abc B BB BBB f"
  2. tr <- gsub(" *\\b[[:alpha:]]{1,2}\\b *", " ", tr) # Remove 1-2 letter words
  3. gsub("^ +| +$|( ) +", "\\1", tr) # Remove excessive spacing
  4.  
Success #stdin #stdout 0.43s 22824KB
stdin
Standard input is empty
stdout
[1] "abc BBB"