Regex for selecting files in 6 hour intervals -


i have list of files timestamp in file name, named in form:

file_year-month-date-hour-minute.something.gz. 

for instance there files named

file_2013-06-17-00-05.something.gz  file_2013-06-17-00-10.something.gz 

i need select files in 6 hour intervals regex. selecting "file_year-month-date*" gives me daily files, not sure how filter down 6 hour chunks.

you can regex if must:

file_\d{4}-\d{2}-\d{2}-(?:00|06|12|18|24)-(?:[0-5][0-9])\..+?\.gz 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -