fork download
  1. col <- c("/abc/def/hdk/database/dbclient/ibm/DB2Client-V97FP02.v01/sqllib/lib64", "/abc/def/hdk/database/dbclient/ibm/DB2Client-V97FP02.v01/sqllib/misc", "azn/external/curl-7.52.1/linux_g44.exe", "store/software/ep/rpg/external/python27-2.7.1/lib")
  2. regmatches(col, regexpr("[^/]+-(?:\\w+\\.v)?\\d+(?:\\.\\d+)*", col, perl=TRUE))
  3.  
Success #stdin #stdout 0.24s 185728KB
stdin
Standard input is empty
stdout
[1] "DB2Client-V97FP02.v01" "DB2Client-V97FP02.v01" "curl-7.52.1"          
[4] "python27-2.7.1"