Currently, I have a list of files that are saved as the following 'xxx_2014_06_03_00_00_01'. I'd like to extract the date in the file name using regexp. Currently, my code is:
However, whenever I test it out, fdate is always returned as empty. I'm extremely confused about regexp and how to use it.