opw62
August 21, 2010, 5:38pm
1
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
abr
August 21, 2010, 6:04pm
2
Well, that´s easy:
Rename CASE=allwords
@NoDeselect
Rename REGEXP PATTERN="(.*)(_|\.| )(.*)(\.)(.*)#" TO="\1 \3\4\5"
Leo
August 21, 2010, 6:06pm
3
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.
abr
August 21, 2010, 6:06pm
4
You might replace the "allwords" parameter with "firstword", to have it exactly as in your example.
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"
Leo
September 2, 2010, 4:18pm
7
That line doesn't touch the capitalisation so it'd like exactly the same.