input <- "this is my 'example'"change <- "test" stringr::str_replace(input, "(?<=').*?(?=')", change)
Standard input is empty
[1] "this is my 'test'"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!