fork(1) download
  1. smple_paths <- c("/path/path/path/abc22/path/path", "/apath/apath/paath/abc11/something/path")
  2. regmatches(smple_paths, gregexpr("abc\\d{2}", smple_paths))
Success #stdin #stdout 0.24s 39024KB
stdin
Standard input is empty
stdout
[[1]]
[1] "abc22"

[[2]]
[1] "abc11"