Replace character in filename, capitalized first character into lower case

Advanced Renamer forum
#1 : 29/12-20 13:26
Chris Schutz
Chris Schutz
Posts: 2
How can I replace the capitalized first character of multiple words into lowercase characters?

I have this:
Jim Reeves - Am I That Easy To Forget. and I want to change that into this:
Jim Reeves - Am I that easy to forget.



29/12-20 13:26 - edited 29/12-20 16:39
#2 : 29/12-20 23:04
David Lee
David Lee
Posts: 1125
Reply to #1:
The following solution assumes that all your filenames are in the form: <name><hyphen+space><text> - ie I'm using "- " as a separator.

Use two Replace methods (or two lines in a List replace method).
Select "Use regular expressions" in each case.

1) Set first character of text to upper case and all following characters to lower case...
Replace: ((.*)(- .))?(.)
With: \2\U3\L4

2) Replace "i" as single word with upper case...
Replace: (\si(\s|$))
With: \U1

A great resource for getting to grips with advanced Regular Expressions is www.regular-expressions.info


29/12-20 23:04 - edited 30/12-20 00:36
#3 : 30/12-20 11:27
Chris Schutz
Chris Schutz
Posts: 2
Reply to #2:
Thanks a lot, I will try it. Stay safe and have a great 2021.


30/12-20 11:27
#4 : 31/12-20 10:41
David Lee
David Lee
Posts: 1125
Reply to #3:
In a single line...

Replace: (^.*?- \K(.))?((<i>)|(.))
With:: \U2\U4\L5
Occurrence: All
Use regular expressions

Replace < & > with square brackets in this regex.

In this forum "i" in square brackets: () is an instruction to display the following text in italics so it cannot be displayed!


31/12-20 10:41 - edited 31/12-20 10:51