creating new filenname with year inside...

A swapping-ground for Regular Expression syntax

creating new filenname with year inside...

Postby gr8 » Thu Dec 10, 2015 9:27 am

hi

i need help... tried for hours, does not work...

i want to rename the following:
Das Tribunal (KD125de-6.3-2002US4).mkv <-the structure of all the filenames is always like that
to
Das Tribunal (2002).mkv

can please someone give me a hand?

thanks a lot!
gr8
 
Posts: 6
Joined: Sun Nov 09, 2014 8:06 am

Re: creating new filenname with year inside...

Postby Stefan » Thu Dec 10, 2015 1:02 pm

gr8 wrote:hi

i need help... tried for hours, does not work...

i want to rename the following:
Das Tribunal (KD125de-6.3-2002US4).mkv <-the structure of all the filenames is always like that
to
Das Tribunal (2002).mkv

can please someone give me a hand?

thanks a lot!



Hi,

you have to find out a common rule to detect the year.... always behind the second hyphen? - always three signs plus ')' behind the year?



Until you report back, I try how I understood:

FROM:
Das Tribunal (KD125de-6.3-2002US4).mkv
TO:
Das Tribunal (2002).mkv

TRY:

RegEx(1)
Match: ^(.+) \(.+-(\d\d\d\d)...\)$
Repla: \1 (\2)







Please wait a few seconds then submit. Thank you.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: creating new filenname with year inside...

Postby gr8 » Thu Dec 10, 2015 4:21 pm

thank you so much. this helped a lot...

i try now myself for a few special cases... if i dont have success i might come back!

gracias again.
gr8
 
Posts: 6
Joined: Sun Nov 09, 2014 8:06 am


Return to Regular Expressions