Magmi is an import tool for some eCommerce software.
I am trying to import images. The problem is that my images are all named "SKU.jpg" and are located in different directories.
Magmi has a tool to solve this using regex.
My problem is coming up with the correct regex expression to make this work.
Note: I have tested my import with manually renamed files, and it works perfectly.
Magmi says if you have similar image names in different directories like this:
thumbs/01.png
standard/01.png
Then use this regex:
re::(.*)/(.*)\.(.*)$::$2_$1.$3
And the files will be renamed like so:
01_thumbs.png
01_standard.png
Now, my files are structured like so:
/images/Headshot/Rectangle/VT08.jpg
/images/FloorShot/Rectangle/VT08.jpg
I was assuming that this regex would work:
re::/(.*)/(.*)/(.*)/(.*)\.(.*)$::$2_$4.$5
to change files like so:
Headshot_VT08.jpg
However, that is not the case.
Is there something I am missing?