#58 Allow folder creation and file move in using regex

Métamorphose 2.x
open
ianaré
5
2011-10-14
2011-10-14
msdobrescu
No

Hello,

I need to rename files using regex, create folders and move the files in it.
Example: take a collection of images and put them in folders with the width x height as folders names.
I would use : (.*?)([0-9]+)x([0-9]+)(.*) for files named 'white-orchid-flower-1600x1200-wallpaper-804.jpg' --> '\2x\3\\\1\2x\3\4' in order to have:
1600x1200\white-orchid-flower-1600x1200-wallpaper-804.jpg on disk.
Note: my files names already contain 'width x height'.

Discussion