Filehost.ro - gazduire fisiere
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
dela_dela pe Simpatie
Femeie
24 ani
Bucuresti
cauta Barbat
24 - 48 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[WINDOWS] Bulk Rename Utility RegEx Renaming

Pagini: 1 Moderat de TRaP, TonyTzu
#1
Mrrrr
AdMiN
Postari: 2388
I have been meaning to renaming something like:

Xxxxx, Yyyy Zzzzzzzz - Aaaaa Bbb Cccc Ddddd v2.0 {Eeeeee}.doc

to

Xxxxx, Yyyy Zzzzzzzz - Aaaaa bbb cccc ddddd v2.0 {eeeeee}.doc

In other words change to sentence case only after the "-" character.

Of course the words Xxxxx, Yyyy, Zzzzzzzz, Aaaaa, Bbb, Cccc, Ddddd, Eeeeee have various lengths.


This you can do with a checkmark in "v2", then using a Match and Replace like...
(.+? - [A-Z])(.+)
$1\L$2

The \L is conducting "Lowercase" to everything after the very first " - [A-Z]".


Note: v2 under RegEx is only available in the newer versions, eg. 3.4.1.0 and maybe a bit older but from 3.x.x.x

Credits to @Luuk from BRU forum:
https://www.bulkrenameutility.co.uk/for ... 466#p14463


_______________________________________


 
   
#2
Mrrrr
AdMiN
Postari: 2388
Bulk Rename Utility - RegEx v2

Code:

Original:    AAAAA BBBBB - CCCC DDDD EEEE.pdf
Expectation:    BBBBB, AAAAA - CCCC DDDD EEEE.pdf

Match:         (.*?) (.*?) (.*)
Replace:     \2, \1 \3

Explanation:
(.*?)    = first item before a space (AAAAA)
(.*?)    = second item before a space (BBBBB)
(.*)    = the rest of the file name ( - CCCC DDDD EEEE.pdf)
\2,    = the second item followed by comma (BBBBB,)
\1 \3    = the first and third item (AAAAA - CCCC DDDD EEEE.pdf)



_______________________________________


 
   
#3
Mrrrr
AdMiN
Postari: 2388
Updated post #2 with explanations.

_______________________________________


 
   
Pagini: 1  
Mergi la