fork download
  1. v <- c("Arof_07122016_2.csv", "Another_99999_ccccc_2.csv")
  2. sub("^[^_]*_([^_]*).*", "\\1", v)
Success #stdin #stdout 0.23s 39280KB
stdin
Standard input is empty
stdout
[1] "07122016" "99999"