How to separate name and surname in a file's name

Advanced Renamer forum
#1 : 09/04-13 00:07
Mario Alvarez
Mario Alvarez
Posts: 14
I have a lot of TED videos and their names have the following pattern: NameSurname_year_480p.mp4. I want to rename them separating the first and the last name. For example, I want to rename the file "JohnDoe_2012_480p.mp4" to "John Doe (2012).mp4". I know how to do the las part, but how can I put a space between the name and the surname using regular expressions?. Sorry for my bad english. I hope you can understand my question.

Best regards,

Mario Alvarez


09/04-13 00:07
#2 : 09/04-13 08:00
Stefan
Stefan
Posts: 250
Reply to #1:

FROM:
JohnDoe_2012_480p.mp4
NameSurname_year_480p.mp4

TO:
John Doe_2012_480p.mp4
Name Surname_year_480p.mp4

DO:
Find a lower case char followed by upper case char,
in the replacement just add a space between matched chars.

USE:
Replace
([a-z])([A-Z])
$1 $2
[X]Case sensitive
[X]Use RegEx


----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


09/04-13 08:00 - edited 10/04-13 07:47
#3 : 09/04-13 15:46
Mario Alvarez
Mario Alvarez
Posts: 14
Reply to #2:

Stefan:

Thank you very much for your help. I did what you suggested, but the result is the following:

File "JohnDoe.mp4" was renamed to "J oh n Do e.mp4"

Could you check this?

Thank you very much again.

Mario


09/04-13 15:46
#4 : 10/04-13 07:52
Stefan
Stefan
Posts: 250
Reply to #3:

Check additionally

[X]Case sensitive




or add '(?-i)' to the RegEx:

(?-i)([a-z])([A-Z])


.

----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


10/04-13 07:52