Newcomer Help with Advanced Renamer

Advanced Renamer forum
#1 : 21/12-23 17:32
John333
John333
Posts: 3
Hello,

I am new to Advanced Renamer and hoping the experts here can help.

I have a bunch of folders in the following format:
Actor1,Actor2,Actor3 Movie Title

Where Actor is the first and last name.

The number of letters for the actors names can vary of course as can the number of actors (but usually only 2 or 3 actors). The result I am looking for would be a folder name with just the movie title alone.

There is no comma between the last actor and the movie title. No spaces between commas either.

An example would be a folder named: Bruce Willis,Alan Rickman,Bonnie Bedelia Die Hard
Result I am looking for is a folder simply named Die Hard

I've actually managed to create 2 replace rules with a remove rule that seem to work, but I am sure it can be done more elegantly.

Any help would be appreciated!


21/12-23 17:32 - edited 21/12-23 23:29
#2 : 24/12-23 14:24
Miguel
Miguel
Posts: 136
Reply to #1:
Hello.
My solution is not very elegant but I think it will work.
It have 3 replace rules.
1 Replace
Tex to be replace: ^([^,]+)[^,]+, *
Replace with: $2
Use regular expressions.
-----------------------------
2 Replace
Text to be replace: (white space)
Replace with: (nothing)
Occurrence: 1st
-----------------------------
3 Replace
Text to be replace:* (after asterisk add a white space)
Replace with: (Nothing)
-----------------------
https://i.ibb.co/tMCFKYc/Captura-de-pantalla-24- 12-2023-29-seg.png

Happy Christmas and happy New Year.
-----------------------------------------------------------
EDIT:
A more elegant way to do it.
REPLACE: (.*,\w*\s\w*\s)|^(?:\w+\s+){2}
REPLACE WITH:
OCCURRENCE: 1ST


24/12-23 14:24 - edited 25/12-23 20:57