-
Notifications
You must be signed in to change notification settings - Fork 1
Examples
For each rule, enter a regex pattern to match against files in the source folder, and a regex template to use while naming the files created in the destination folder.
The pattern must match the entire file name (along with its extension). Here are some examples:
trackbook-backup\.zipImportant
Escape special characters, like periods and parentheses.
AntennaPodBackup(.*)\.dbCaution
Ensure that the prefix is specific enough. Too-broad patterns may lead to data loss.
TubularData-(?<date>\d{8})_(?<time>\d{6})\.zipThe template can contain references to groups captured in the pattern. Prefer named groups to avoid ambiguity. Here are some examples:
antennapod.db
Important
If a file with the same name is already present in the destination and the "overwrite existing" option has not been turned on, the flow will fail.
tubular${date}.zip
tubular$1.zip
Use these examples to build your own pattern/template pairs. You can visit regexr.com to learn more about regex, as well as build & test patterns. For advanced usage, you can use this playground to test against the actual Kotlin regex engine.
If you're having difficulty targetting certain files, you can raise an issue describing your situation.