x <- c("16 x 13 x 12 inch box", "1x2x3 pipe", "123x 23 x334 asd")sub("^[0-9]+(?:\\s*x\\s*[0-9]+)+\\s*", "", x)
Standard input is empty
[1] "inch box" "pipe" "asd"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!