Changing the first name and last name in the directory name

Hello
I have a lot of audiobooks with the directory names "first name last name - title"
for example: George Orwell - Nineteen Eighty-Four
I would like to change them to "last name first name - title"
for example: Orwell George - Nineteen Eighty-Four
How can i do it?
Reply to #1:

Hi Tomasz,

Well, the short answer is you can do a Replace method with:
R: <word:1> <word:2>
RW: <word:2> <word:1>
Apply to: Name (nothing checked)

But what if you have an author with three names? That won't cut it. Or if you have someone with initials that have periods ( "L. J. Donahue" ).

I prefer, and advise, a Replace method something more like this regular expression:
R: ^(.*) ([\w-]+) - (.*)$
RW: $2 $1 - $3
Case: no
Use Reg Exp: yes
Apply to: Name

[NOTE: I edited the "replace" expession so that it will handle hyphenated last names, like "Roseanne Roseanna-danna" or "Terrapin Ally-Gators" for instance. :) ]

That should take care of most all cases you'll encounter, although there can always be outliers.

By the way, no spaces at the start or end of the expression(s). There are some other ways to do it, but this is a pretty handy one. Oh, if you want a comma after the last name just substitute "$2, $1 - $3" for the Replace With: string.

Best,
DF
Reply to #2:
Thank you very much :-)