Filename Pattern Replacer
Filename Pattern Replacer
This flow element lets you make replacements in the filename.
You can use regular expressions for the replacements, or simple string replacements.
Tip
To replace with an empty string, use the keyword EMPTY
Replacements
One or more pattersn to replace. These can be simple strings or regular expressions.
Use Working Filename
If current working filename should be used, or if false, the original filename of the incoming file will be used.
Outputs
- Replacement done
- No replacement done
Examples
Pattern | Value | Description |
---|---|---|
s([\d]+)e([\d]+) | $1x$2 | Replaces a string matches s01e02 or s1e02 etc with 01x02 or 1x02 (does not trim leading zeroes) |
0([1-9]+x[\d]+) | $1 | Trims a leading zero from 01x02 etc |
\.h265 | EMPTY | Replaces .h265 with an empty string, ie removes that from the filename |
1080p | 720p | Replaces 1080p with 720p |