fork download
  1. x <- c("123AB123 CDe FG123-4", "ABCD A123B")
  2. regmatches(x, gregexpr("(?<!\\S)(?=\\S*\\p{L})(?=\\S*\\d)\\S+", x, perl=TRUE))
  3.  
Success #stdin #stdout 0.16s 178496KB
stdin
Standard input is empty
stdout
[[1]]
[1] "123AB123" "FG123-4" 

[[2]]
[1] "A123B"