vector <- c("20 DE NOVIEMBRE", "CENTRO", "EL ARENAL 4A SECCION", "IGNACIO ZARAGOZA", "JARDIN BALBUENA", "MOCTEZUMA 2A SECCION", "MORELOS", "PEON DE LOS BAOS")sub("^\\S+\\s+\\S+\\K\\s+", "\n", vector, perl=TRUE)
Standard input is empty
[1] "20 DE\nNOVIEMBRE" "CENTRO" "EL ARENAL\n4A SECCION" [4] "IGNACIO ZARAGOZA" "JARDIN BALBUENA" "MOCTEZUMA 2A\nSECCION" [7] "MORELOS" "PEON DE\nLOS BAOS"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!