fork(2) download
  1. x <- c('I like the pizza', 'The water in the pool', 'the water in the pool')
  2. gsub("(?<!^)\\b(?:the|an?|[io]n|at|with|from)\\b(*SKIP)(*FAIL)|\\b(\\pL)", "\\U\\1", x, perl=T)
Success #stdin #stdout 0.46s 79168KB
stdin
Standard input is empty
stdout
[1] "I Like the Pizza"      "The Water in the Pool" "The Water in the Pool"