You are not logged in.
Pages: 1
Hi,
I hope someone can help me here, first of all im no good at regex so I need some help in renaming alot of files with diffrent content in all folder!
Folder 1:
Columbo.S01E01.da-dk.srt
Columbo.S01E01.fi-fi.srt
Columbo.S01E01.mp4
Columbo.S01E01.nb-no.srt
Columbo.S01E01.sv-se.srt
I would like when renamer has done it's job the filename should read:
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.da.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.no.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.sv.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.fi.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.mp4
Hope someone can help me achieve this :-)
Last edited by klapvogn (2023-05-06 08:26)
Offline
Hi,
Try this RegEx rule:
1) Regular Expressions: Replace expression "(Columbo\.S01E01)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension)
or less strict one regarding first filename part
1) Regular Expressions: Replace expression "(\w+\.\w+)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension)
From:
Columbo.S01E01.da-dk.srt
Columbo.S01E01.fi-fi.srt
Columbo.S01E01.mp4
Columbo.S01E01.nb-no.srt
Columbo.S01E01.sv-se.srt
To:
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.da.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.fi.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.mp4
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.nb.srt
Columbo.S01E01.NORDiC.720p.WEB.H264-XXXX.sv.srt
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
What about multiple files like :
Edit:
tried this one:
or less strict one regarding first filename part
1) Regular Expressions: Replace expression "(\w+\.\w+)(\.?[a-z]+)?(-[a-z]+)?" with "$1.NORDiC.720p.WEB.H264-XXXX$2" (skip extension
Seems to work as I wanted
Can it be made universal maybe?
Law.And.Order is the name, but it has moved "Order"
Last edited by klapvogn (2023-05-06 11:49)
Offline
Yes it can but please provide various and textual examples in future like in the first post! We cannot guess what variations in filenames you have.
1) Regular Expressions: Replace expression "(\w+\.)(\.?S[\w]+)(\.?[a-z]+)?(-[a-z]+)?" with "$1$2.NORDiC.720p.WEB.H264-XXXX$3" (skip extension)
It should resolve all "name.name.etc" parts.
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
Pages: 1