a <- c("this is a number 9999333333 and i got 12344") gsub("(?:\\G(?!^)|(?