Page 1 of 1

Match Text in Name Before Dash

PostPosted: Fri Jan 27, 2017 3:46 pm
by millerstevew
I'd like to sort files into subfolders based on part of the file name—everything before a dash. Sometimes there will be one word before the dash. Other times, there might be multiple words. For example:

I'd like to sort:

"Lewis - The Lion, the Witch, and the Wardrobe.pdf" to "/Lewis/Lewis - The Lion, the Witch, and the Wardrobe.pdf"
"C.S. Lewis Institute - A Study of C.S. Lewis.pdf" to "/C.S. Lewis Institute/C.S. Lewis Institute - A Study of C.S. Lewis.pdf"

I can sort the former using the "name matches" and "custom text" token. Is it possible to have a token include spaces?

Re: Match Text in Name Before Dash

PostPosted: Mon Jan 30, 2017 1:24 pm
by Mr_Noodle
You can use spaces. Can you show me the pattern you are using and how it isn't working?