rename files


#1

Here is what i would like to do. I want to rename all files and fields to Sentence case ie:

CC music factory - CC Music Factory. The problem is that when i do a case conversion it also changes the CC to Cc. If there a way that i can tell the program to ignore any text that have two consecutive Capital letters to leave them alone and continue to change the case for the rest. I would like to do this globally so i don't have to go back and do them one at a time. Please help.


#2

Hello there!

I think i may have find a practical work around for your problem.

1ST STEP - Create a Action Group called Mixed Sentence w/Repeated Chars

Click on "NEW" button and follow the steps bellow:

Actions -> Replace with regular expression

                 Field: (It works with any of the fields)

Regular Expression: (.)\1+

      Replace with: $upper($1)$repeat($upper($1),1)

2ND STEP - Click again on "NEW" button and follow the steps bellow:

Actions -> Case Conversion

                 Field: (It works with any of the fields)

Case Conversion: Mixed Sentence

The third field should be left blank

There, you learned how to create a action group with two useful actions that will solve your problem! :slight_smile:

I really hope this helps because i've spent a couple hours learning following this useful website:

guiStuff - Regular Expressions: Part 3

Take care! :slight_smile: