Split folder name into sub-folders

A swapping-ground for Regular Expression syntax

Split folder name into sub-folders

Postby mikewoods » Sun Jun 25, 2017 7:52 pm

Hi. Not sure if this is a regex query, but I've searched and cannot find any previous answers. I have a number of files in a folder and I want to use the second part of the folder name to create a sub-folder to hold those files. So, for example, if I have a series of files like this:

Root folder/first part - second part/file.name

I want to end up with:

Root folder/first part/second part/file.name

The characters between the first part and second part will always be space-dash-space. Is this possible? In case anyone is thinking "why doesn't he just create the sub-folder manually and drag the files over", I need to do this regularly enough to make automation useful.

Mike
mikewoods
 
Posts: 1
Joined: Sun Jun 25, 2017 3:47 pm

Return to Regular Expressions