#1 2013-05-05 10:08

erebus
Member
Registered: 2013-05-05
Posts: 36

Capitalize some part of text only

hello
I find really great ReNamer.

I found much of what I needed in the pages of your forum and Wiki, but i have a problem that I can not seem to solve, I explain

I have some files named like that:
titles title S01E01
Titles s08e20
etc....

when i use rules: case>> capitalize every word. the result gives me that (the "s" and the "e" becomes a lower case letter, when i want stay or becomes a capital letter)
Examples:
Titles Titles s01e01
Titles s08e20

when what I want is that
Titles Titles S01E01
Titles S08E20

I hope you understand what I say, I speak very bad English and I use google trad
Thank you in advance

Best regards

Last edited by erebus (2013-05-05 10:10)

Offline

#2 2013-05-05 17:29

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Capitalize some part of text only

Hi and welcome!


BEFORE:
titles title S01E01.ext
Titles s08e20.ext

AFTER:
Titles Titles S01E01.ext
Titles S08E20.ext

USE RULES:
1) Case: Capitalize every word (skip extension)
2) RegEx: Replace expression "s(\d\d)e(\d\d)" with "S$1E$2" (skip extension)


---------

Explanation:

1) Case: Capitalize every word (skip extension) gives you
Titles Titles S01e01.ext
Titles S08e20.ext

2) RegEx: Replace expression "s(\d\d)e(\d\d)" with "S$1E$2" (skip extension) gives you
Titles Titles S01E01.ext
Titles S08E20.ext

Since we work on chars 'S' and 'E' followed by two digits, we just hard-code
the match on that and replace with upper case chars by hand.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2013-05-05 18:02

erebus
Member
Registered: 2013-05-05
Posts: 36

Re: Capitalize some part of text only

Hi
Thank you very much

Offline

Board footer

Powered by FluxBB