smple_paths <- c("/path/path/path/abc22/path/path", "/apath/apath/paath/abc11/something/path")
regmatches(smple_paths, gregexpr("abc\\d{2}", smple_paths))