name = c("company", "deriv.x", "isConfirmed.y")new.name = gsub("\\.[xy]", "", name)new.name
Standard input is empty
[1] "company" "deriv" "isConfirmed"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!