You are not logged in.
Hi erebus,
Note: I presume that space is omitted accidentally in the second expected example, so it is added as a result, as well as "S1" in 3rd and 4th example in the second path.
Hello eR@SeR
Yes it was a typing error
1) Regular Expressions: Replace expression "(.+) [Ss]0?(\d)\s?[Ee]?(\d+)" with "$1\\$1 S$2\\$1 S$2E$3" (skip extension)
2) Regular Expressions: Replace expression "((.+) (\d+))" with "$2\\$2 S1\\$2 S1E$3" (skip extension)
your both Regular Expressions, do an excellent job.
Is this worked for you?
Oh Yes its work perfectly
A big thank-you
Again Thank you very much
Offline
Hello again
new sample file I did not think
File Source:
Kabukichou Sherlock 5.mp4
Now with your both Regex it give me this result:
Kabukichou Sherlock\Kabukichou Sherlock S1\Kabukichou Sherlock S1E5.mp4
instead of:
Kabukichou Sherlock\Kabukichou Sherlock S1\Kabukichou Sherlock S1E05.mp4
Do you have a solution too?
Thanks for advance
Best Regards
Offline
We would need one more RegEx rule to handle "Kabukichou Sherlock 5.mp4" case and one extra to handle two or more digits case like "Kabukichou Sherlock 12.mp4" by removing leading zero added by 3rd RegEx. Try them:
1) Regular Expressions: Replace expression "(.+) [Ss]0?(\d)\s?[Ee]?(\d+)" with "$1\\$1 S$2\\$1 S$2E$3" (skip extension)
2) Regular Expressions: Replace expression "((.+) (0\d))" with "$2\\$2 S1\\$2 S1E$3" (skip extension)
3) Regular Expressions: Replace expression "((.+) (\d))" with "$2\\$2 S1\\$2 S1E0$3" (skip extension)
4) Regular Expressions: Replace expression "S(\d+?)E0(\d{2,})" with "S$1E$2" (skip extension)
Source File:
Kabukichou Sherlock 5.mp4
Kabukichou Sherlock 12.mp4
Kabukichou Sherlock 123.mp4
To:
Kabukichou Sherlock\Kabukichou Sherlock S1\Kabukichou Sherlock S1E05.mp4
Kabukichou Sherlock\Kabukichou Sherlock S1\Kabukichou Sherlock S1E12.mp4
Kabukichou Sherlock\Kabukichou Sherlock S1\Kabukichou Sherlock S1E123.mp4
If you want to have leading zero, just uncheck 4th RegEx...and I hope there are no more additional cases
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
If you want to have leading zero, just uncheck
Ok
I hope there are no more additional cases
I Hope too,
thanks you very much Again, your help and that of this community is really precious on this fabulous tool
Thanks again
Offline
You're welcome.
fabulous tool
You can think about buying the Pro version and use the full potential of the tool
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
You're welcome.
erebus wrote:fabulous tool
You can think about buying the Pro version and use the full potential of the tool
it's been done for a few years
Offline
Even better.
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
Try them:
1) Regular Expressions: Replace expression "(.+) [Ss]0?(\d)\s?[Ee]?(\d+)" with "$1\\$1 S$2\\$1 S$2E$3" (skip extension)
2) Regular Expressions: Replace expression "((.+) (0\d))" with "$2\\$2 S1\\$2 S1E$3" (skip extension)
3) Regular Expressions: Replace expression "((.+) (\d))" with "$2\\$2 S1\\$2 S1E0$3" (skip extension)
4) Regular Expressions: Replace expression "S(\d+?)E0(\d{2,})" with "S$1E$2" (skip extension)
Hello,
sorry to disturb you again,
but I have again a slight problem.
I have this Serie :
Major 2nd S2 01
Major 2nd S1 01
and With four Rule i Give Me that:
Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major\Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major S1\Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major S1E2nd S1\Major S1E02nd S1E01.mp4
Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major\Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major S1\Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major S1E2nd S2\Major S1E02nd S2E01.mp4
If I remove two rules "1 & 2" or "2 & 3" the files is almost good Just S1 In double :
Major 2nd S1\Major 2nd S1 S1\Major 2nd S1 S1E01.mp4
Major 2nd S2\Major 2nd S2 S1\Major 2nd S2 S1E01.mp4
I understand that this is "2nd" which poses problem
The only solution i see is remove "2nd" and re add at the end of the rules, but if another serie with the same model come back
I should do the same for the other titles.
If you have a solution ? I'll take it.
in the end i need that
Major 2nd S1\Major 2nd S1\Major 2nd S1E01.mp4
Major 2nd S2\Major 2nd S2\Major 2nd S2E01.mp4
Thanks for advance
best regards
Vincent
Last edited by erebus (2020-04-06 16:22)
Offline
Vincent, can you please state clearly the original full paths and the desired output full paths?
P.S. No necroposting please. Next time, start a new thread, where you can reference the old thread if needed.
Offline
Vincent, can you please state clearly the original full paths and the desired output full paths?
Hello Thanks for the Answer
- I corrected my previous post
P.S. No necroposting please. Next time, start a new thread, where you can reference the old thread if needed.
- Its not necrposting is continuation i start this post for Create Folder & Subfolder according filename, the method a changed but is but it's the same function maybe I misspoke
i start again
File Start:
- Ace Of Diamond S4 01.mp4
- Major S1 01.mp4
- Major 2nd S2 01.mp4
- Major 2nd S1 01.mp4
Rule Used:
1) Regular Expressions: Replace expression "(.+) [Ss]0?(\d)\s?[Ee]?(\d+)" with "$1\\$1 S$2\\$1 S$2E$3" (skip extension)
2) Regular Expressions: Replace expression "((.+) (0\d))" with "$2\\$2 S1\\$2 S1E$3" (skip extension)
3) Regular Expressions: Replace expression "((.+) (\d))" with "$2\\$2 S1\\$2 S1E0$3" (skip extension)
4) Regular Expressions: Replace expression "S(\d+?)E0(\d{2,})" with "S$1E$2" (skip extension)
File Result With rules
- Ace Of Diamond\Ace Of Diamond S4\Ace Of Diamond S4E01
- Major\Major S1\Major S1E01
- *Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major\Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major S1\Major 2nd\Major 2nd S1\Major\Major 2nd\Major 2nd S1\Major S1\Major 2nd\Major S1E2nd S1\Major S1E02nd S1E01.mp4
- *Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major\Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major S1\Major 2nd\Major 2nd S2\Major\Major 2nd\Major 2nd S2\Major S1\Major 2nd\Major S1E2nd S2\Major S1E02nd S2E01.mp4
* there is a problem
what I want:
- Ace Of Diamond\Ace Of Diamond S4\Ace Of Diamond S4E01.mp4
- Major\Major S1\Major S1E01.mp4
- Major 2nd\Major 2nd S2\Major 2nd S2E01.mp4
- Major 2nd\Major 2nd S1\Major 2nd S1E01.mp4
The problem would come from"2nd" and I wanted to see if there was any other solution than removing "2nd" and having to add "2nd" at the end.
I hope to have been clear
sorry english is not my language
Thanks for advance
Best Regards
Vincent
Offline