fork download
  1. V1 <- c("path/to/file/filename-Aug-4-2017-_to-Aug-4-2017_otherinfo_.csv", "otherpath/to/file/filename-Aug-18-2017-_to-Aug-18-2017_otherinfo_.csv")
  2. df <- as.data.frame(V1)
  3. df$Date <- sub(".*?\\b([A-Za-z]{3}-\\d{1,2}-\\d{4})\\b.*", "\\1", df$V1)
  4. df
Success #stdin #stdout 0.22s 176448KB
stdin
Standard input is empty
stdout
                                                                     V1
1        path/to/file/filename-Aug-4-2017-_to-Aug-4-2017_otherinfo_.csv
2 otherpath/to/file/filename-Aug-18-2017-_to-Aug-18-2017_otherinfo_.csv
         Date
1  Aug-4-2017
2 Aug-18-2017