mirror of
https://github.com/al0cam/AutoMover.git
synced 2026-07-22 12:10:26 +00:00
1.7 KiB
1.7 KiB
Moving Rules
Important Notes
Important note 1: The text is case sensitive.
Important note 2: Use the "/" character to separate folders.
Writing Regex: The best tool for writing regex is Regex101 (https://regex101.com/)
Examples without Regex
Lets imagine you have three files called Scroll 1, Scroll 2 and Scroll 3. Such as you can see below:
After you install the plugin, you can create a rule to move all files that start with "Scroll" to the "Scrolls" folder. The rule would look like this:
This will then create a folder called "Scrolls" and move all files that start with "Scroll" to that folder. The end result will look like this:
Example with Regex and Groups
Important note: The regex flavor used in this plugin is the ECMAScript(Javascript) flavor. The biggest difference between ECMAScript and PCRE2 is that {} brackets require the first value to be something ({0,1} -> zero or one of), while in PCRE2 it can be empty ({,1} -> zero or one of).
Imagine that you wanted to sort each scroll by its number into a separate folder. You could use the following regex to achieve that:
This will then create a folder for each scroll number and move the respective files to the correct folder. The end result will look like this: