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