This page is where the real magic happens! Here we will be discussing how you can add regular expressions and special rules
Regular expressions
If you don’t know what regular expressions are, this section may not concern you. However, I do encourage you to learn about them. Regular expressions (or regex for short) are patterns you can add to your rules to make finding things easier. For example, the pattern /\d+/ finds the first number in the file name
There are 2 rules that support regex; the remove and replace. You can use regex by checking the regex checkbox beside the text field. You do not need to add the /’s to your pattern
Special rules
Right now there is 1 special rule that you can add to your rules. More may be coming later
Integer incrementer
If your files need to have a number which increments, e.g., an episode number, you can add an integer incrementer to your rule. This takes the form of the text {i:[starting number]:[padding]}
You can have as many whitespace characters between the characters as you wish, but the rest must match that pattern. If you don’t need padding on your number, leave padding as 0
Examples
- The script “s01e{ i: 1: 2 }” will create the text: s01e01, s01e02, s01e03, …
- The script “s01e{ i: 1: 3 }” will create the text: s01e001, s01e002, s01e003, …
- The script “{ i: 101: 0 } will create the text: 101, 102, 103, …
- The script “{ i: 5: 2 }x{ i: 10: 4 }” will create the text: 05×0010, 06×0011, 07×0012, …
Wrapup
We have now completed the tutorial. If you have any questions or suggestions, please contact me on ourĀ contact page
