emails <- c("xyz@gmail.com", "abc@hotmail.com")emails_new <- gsub(".*@(.+)$", "\\1", emails)emails_new
Standard input is empty
[1] "gmail.com" "hotmail.com"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!