fork download
  1. x <- c("Folder//Subfolder/study30/01_study30_Baseline.xlsx", "Folder//study30/01_study30_6M.xlsx")
  2. sub("^(?:.*_)?([^_/]+)\\.xlsx$", "\\1", x)
Success #stdin #stdout 0.28s 38472KB
stdin
Standard input is empty
stdout
[1] "Baseline" "6M"