|
|||||||
![]() |
|
|
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: 31,264
Karma: 61916422
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 05:11 PM. |
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,686
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 here: I know those regular expressions are powerful. If I want to learn how to code/write them, what is the best site/book I can start with? There's so much information out there on the Internet I don't know what's best for a beginner.
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,215
Karma: 8888888
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:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to replace characters in title | mariaclaudia | Calibre | 5 | 03-29-2018 11:30 PM |
| Aura Books not listed by title but just "<title> - <number> - <series>" | qee4q | Kobo Reader | 12 | 05-10-2015 05:37 PM |
| ID number and title | jjansen | Calibre | 5 | 10-04-2010 11:19 AM |
| Non-English characters in title / author | lejuan | Calibre | 7 | 01-18-2010 04:52 PM |
| Title (Number)? | Djehuty | Calibre | 2 | 04-01-2009 11:46 PM |