Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


dkocur
2014-03-31T19:12:01Z
I have a folder that contains archived data that I routinely clean up. We just upgraded to 7.1.3 and I'm trying to take advantage of some of the new functionality in the Delete Folders task. Specifically, I'd like to delete subfolders older than 60 days that have a name that matches \d{4}-\d{2}-\d{2} (to match folders named using the pattern yyyy-MM-dd.) The date filter appears to be working correctly, but when I check "Is regex" and enter the string above I don't get any matches. The only regex expression I've been able to get to work is .+. 😢

Any ideas?
dkocur attached the following image(s):
Sponsor
Forum information
Support
2014-03-31T19:53:10Z
I don't know regex but I do wonder how the string you use can be both month and day? I mean, you use \{d2} for both month and day?

EDIT: I see know that you try to match on digits only. Thought you wanted to match on current date.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dkocur
2014-03-31T19:58:00Z
Hi Henrik,

\d{2} will (should) match any two digit number. I just want to verify that it looks like a date. Verifying that it is an actual valid date would require more than regex can handle. 😉
bbusse
2014-03-31T20:16:37Z
This works (see attached):


{REGEX(Match|*|\d{4}-\d{2}-\d{2})}

Edit: Wait, i lied.... it's finding additional folders too... grrrr

Brian
bbusse attached the following image(s):
Support
2014-03-31T20:24:10Z
There is a bug here - thanks for the report. Please test this version:

http://www.visualcron.co....aspx?g=posts&t=3937 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dkocur
2014-03-31T20:29:24Z
Originally Posted by: Support 

There is a bug here - thanks for the report. Please test this version:

http://www.visualcron.co....aspx?g=posts&t=3937 



Wow! That was fast! I'll download it and test it out in our QA environment. Thanks!

bbusse
2014-03-31T20:36:54Z
Originally Posted by: dkocur 

Originally Posted by: Support 

There is a bug here - thanks for the report. Please test this version:

http://www.visualcron.co....aspx?g=posts&t=3937 



Wow! That was fast! I'll download it and test it out in our QA environment. Thanks!



That's our buddy Henrik, fastest software-fix-developin' cowboy in the west.

I just tested and it's working by simply using a normal REGEX like originally requested:

\d{4}-\d{2}-\d{2}


Brian
Support
2014-03-31T21:28:28Z
😎 Just glad it was resolved - thanks for the quick testing!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top