Create folders based on suffix

Hello all,

Although I have tried searching numerous times for this topic (it probably exists somewhere), I just cannot get lucky enough to find it. All I want to do is to create folders based on the file's suffix and move those files into their corresponding folder.
example:

BEFORE:
files
Leonard.PDF
Leonard.XLS
Leonard.DOC

AFTER:
folders/files
PDF
Leonard.PDF
XLS
Leonard.XLS
DOC
Leonard.DOC

Can someone please help?

This topic is similar to your other request:

Create subfolders

Use Rename with the following:

Old Name: (.).(.)
New Name: \2\\1.\2
Type: Regular Expressions

Perfect! Thank you.

Hi MrC
Unfortunately, that syntax did not work. It creates folders based on the name+suffix of the file. I was looking for the syntax that creates folders based only on the suffix. I'm not a programmer so these syntax are mind boggling to me. Leo's and your syntax are so different from each other that I would not know where to start in experimenting.

MrC's suggestion looks like it does what you wanted:


Hi.

I created a button using the syntax and the result is file name+suffix. Did I do something wrong?


You've got "(.)(.)" as your 'from' pattern instead of "(.).(.*)"

Well, that was somewhat embarrassing. :blush: I focused only on the latter syntax and not the first part. But It works now! Thank you everyone for your help.