|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2016
Device: none
|
How to get first number of characters in the title to the back of the title
Folks,
I have a lot of books where the title is something like : (ABCD)EFGH How can i get the left and right parenthesis and all the text between the parenthesises and put that behind the rest of the title (and a space) so that the title looks like : EFGH (ABCD) I assume I have to work with regular expressions but I don't have any idea where to start.. Thanks in advance.. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,919
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Bulk mode Search and replace
NOT TESTED Code:
(\(.+?\))(.+?) Code:
\2<a space>\1 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2016
Device: none
|
Thanks, but it's not working :-( Somehow it's not getting the correct data in the search and places in the wrong place with the replace function..
![]() ![]() Last edited by quicks; 05-21-2018 at 04:11 PM. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,597
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Could you try:
Code:
\(([^)]+)\)(.+) Code:
\2 (\1) |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2016
Device: none
|
![]() ![]() Perfect! Thank you! Little bit ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,176
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
That is a quick reference I highly recommend you bookmark or download. https://manual.calibre-ebook.com/regexp.html calibre regexp tutorial. bernie |
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2016
Device: none
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to replace characters in title | mariaclaudia | Calibre | 5 | 03-29-2018 10:30 PM |
Aura Books not listed by title but just "<title> - <number> - <series>" | qee4q | Kobo Reader | 12 | 05-10-2015 04:37 PM |
ID number and title | jjansen | Calibre | 5 | 10-04-2010 10:19 AM |
Non-English characters in title / author | lejuan | Calibre | 7 | 01-18-2010 03:52 PM |
Title (Number)? | Djehuty | Calibre | 2 | 04-01-2009 10:46 PM |