What a strsplit function in R does is, match and delete a given regular expression to split the rest of the string into vectors.
>strsplit(\"abc123def\",
You can use strapply from gsubfn package.
test <- "abc123def" strapply(X=test, pattern="([^[:digit:]]*)(\\d+)(.+)", FUN=c, simplify=FALSE) [[1]] [1] "abc" "123" "def"