Rename Underscores to spaces + Capitalize sentence

There is this nice Dots to spaces except in numbers,orp
see Renaming: title Dots to spaces except in numbers. (For files and folders.)

I'd like to have the same but underscores to spaces and capitalizing sentence.

so:
THIS_LINE_SHOULD_IN_FACT_V1.0
become
This line should in fact v1.0

Vainly tried to find this solution somewhere on the forum.

TIA

Well, that´s easy:

Rename CASE=allwords @NoDeselect Rename REGEXP PATTERN="(.*)(_|\.| )(.*)(\.)(.*)#" TO="\1 \3\4\5"

Did you see the modify capitalization option in the rename window? Just edit your existing rename preset and turn that on, set to Capitalize First Word.

You might replace the "allwords" parameter with "firstword", to have it exactly as in your example.

Dear both,

Thanks a lot!!

This works fine indeed.

Much appreciated.

=

What would this line of code look like if it only replaced the underscores without changing any capitalization?

Rename REGEXP PATTERN="(.)(_|.| )(.)(.)(.*)#" TO="\1 \3\4\5"

That line doesn't touch the capitalisation so it'd like exactly the same. :slight_smile: