!7 sS progID = #1007510; p { Pattern pat = Pattern.compile("^(.*)\\.backup(20\\d\\d)(\\d\\d)(\\d\\d)-(\\d\\d)$"); for (File f : listFilesNotDirs(programDir(progID))) { S s = f.getName(); Matcher matcher = pat.matcher(s); continue unless matcher.find(); print("Found backup: " + sfu(matcherGroups(matcher))); S originalName = matcher.group(1); int year = matcherInt(matcher, 2); int month = matcherInt(matcher, 3); int day = matcherInt(matcher, 4); int hour = matcherInt(matcher, 5); long time = timestampFromYMDH(year, month, day, hour); print("Age: " + ((now()-time)/1000/60/60/24) + " days"); } }