Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Filter files using regular expressions

This flow demonstrates how to filter files based on the file names containing a date. The format of the date being checked is dd-mm-yy and can be placed anywhere in the file name.

This flow is compatible with: LightSWITCH, FullSWITCH, PowerSWITCH

Information


All files dropped in the input folder will be checked and will be moved over the connection only if their file name contains a date of the format dd-mm-yy. All other files will be rejected by this connection.

The regular expression used to filter on date is the following: .*(0[1-9]|[12][0-9]|3[01])[-](0[1-9]|1[012])[-](\d\d).*

Using this flow

  • Download the flow and save it on your computer: download flow
  • Launch one of the SWITCH products this flow is compatible with
  • Use the “Flow > Import…” menu item
  • In the dialog that is shown, select the flow file you just saved

The flow now appears in the flow list. You can now examine or customize it to your needs.

© Copyright 2007 by Gradual Software.