x <- "123456789 kfasdf 3456789asdf a 1 12345 789 1 9 a 678a" regmatches(x, gregexpr("(?\\d|(?