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.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
barbyy la Simpatie.ro
Femeie
23 ani
Bucuresti
cauta Barbat
23 - 80 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] Bulk Rename Utility RegEx Renaming Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
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:


_______________________________________


pus acum 3 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Say you have a file named:
AAAAA BBBBB - CCCC DDDD EEEE

and want to rename it to
BBBBB, AAAAA - CCCC DDDD EEEE

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



AAAAA BBBBB ZZZZ - CCCC DDDD EEEE
to
ZZZZ, AAAAA BBBBB - CCCC DDDD EEEE

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




AAAAA BBBBB ZZZZ YYY - CCCC DDDD EEEE
to
YYY ZZZZ, AAAAA BBBBB - CCCC DDDD EEEE

(.*?) (.*?) (.*?) (.*?)\ (.*)
\3 \4, \1 \2 \5

etc.


_______________________________________


pus acum 3 ani
   
Pagini: 1  

Mergi la