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


Au Ma
  •  Au Ma
  • Paid support Topic Starter
2022-02-03T07:06:54Z
Hello,

I have a directory with PDFs that follow the naming convention "Delivery_Tracking".

Here is an example of a file: 260472098_7099424555

I am only looking to delete files with 10 digit tracking numbers.

Is there any way to filter for these files using regex in the file mask?


Thanks you.
Sponsor
Forum information
Gary_W
2022-02-03T21:11:13Z
Sure, in the delete file task, just check the "is regex" box. Use this for the file mask:
\d+_\d{10}\.pdf
One or more digits followed by an underscore followed by exactly 10 digits followed by a literal dot then "pdf".

Tip: Use the Test tab/show filtered files button to test that the regex matches what you expect without actually deleting anything.
Au Ma
  •  Au Ma
  • Paid support Topic Starter
2022-02-03T21:33:24Z
Thank you Gary! That was just what I was looking for.

Gary_W
2022-02-03T21:44:47Z
Support
2022-02-04T08:34:00Z
Awesome. Thanks Gary!
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top