gsub(pattern = "^((?:[^-]*-){2})", replacement = "\\119", x = "10-Feb-52")
Standard input is empty
[1] "10-Feb-1952"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!