x <- "0,1 10 1000,29 3,23313"regmatches(x, gregexpr("\\d+(?:,\\d+)?", x))
Standard input is empty
[[1]] [1] "0,1" "10" "1000,29" "3,23313"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!