#1 2020-07-02 21:34

Ptaker
Member
Registered: 2020-04-10
Posts: 13

Rearrange Author - Series - Title - Other Authors

To rearrange Author - Series - Title - Other Author(s)

I have ebooks with two or more authors, one at the beginning of the list and the remaining author(s) at the end of the list.
I have solved the problem with two authors but need your help with more than two authors. It could be three or four authors.
-----------------------------
EXAMPLE With Two Author:
From: Tom Jones - [Alice in Wonderland 03] - Alice Reading Story - Peter Gaines.epub
TO:    Tom Jones & Peter Gaines - [Alice in Wonderland 03] - Alice Reading Story.epub

My Working Expression: Rearrange with "-" Delimeter, New Pattern: $1&$4 - $2 - $3 and skip extenson
----------------------------
EXAMPLE With Three Authors:
From: Tom Jones - [Alice in Wonderland 03] - Alice Reading Story - Peter Gaines, Alfred E Newman.epub
TO:    Tom Jones & Peter Gaines & Alfred E Newman - [Alice in Wonderland 03] - Alice Reading Story.epub

NOTES: Format: Author dash Series dash Title dash Author, Author.epub
Authors should be separated by "&". There are no commas separating the authors.

Thank you in advance for your help.

Offline

#2 2020-07-02 23:42

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Rearrange Author - Series - Title - Other Authors

Hi Ptaker,

As per given examples, these rules should work for two or more Authors as suffix:

1) Regular Expressions: Replace expression "(.+) - (.+) - (.+) - (.+)" with "$1 & $4 - $2 - $3" (skip extension)
2) Replace: Replace all "," with " &" (skip extension)


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB