![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
![]()
Hi to all
I'm trying to import some ebook in my library. Using regular expression to exctract author and title from filename ((?P<author>[^_]+) - (?P<title>.+)) work fine but I need to subctract a string from filename that is not part of the title but it repeat in all filenames. Under an example: David Green - The great war (philiph collection) importing this ebook the result is: Author: David Green ....that is ok Title: The great war (philip collection) I need to avoid the string :"(philip collection)" from all imported ebook. Is there a way to do that ? really TnX in advance for help. By Ippopom |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
do you know REGEX ? \(.+\) should trap the paren and contents, you will need more patterns |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
Sorry theducks but I don't understand your answer .... (my English level I suppose sorry again)
|
![]() |
![]() |
![]() |
#4 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
theducks is suggesting you remove the offending text from the title after it is imported, by using the bulk metadata editor. Look in Edit metadata > Edit metadata in bulk -> Search and replace.
In your case replacing " (philip collection)" with nothing should be all you need. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Mar 2010
Device: palm tungsten T5
|
tnx both for answer. I found the option in bulk metadata and I'll try (after a backup
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mini Part Broken Screen - Is it possible to just use working part? | retsaw | Kobo Developer's Corner | 4 | 12-15-2012 10:45 PM |
Filename length | LGN | Calibre | 8 | 10-20-2010 11:48 PM |
Filename for Display? | camgee | Ectaco jetBook | 10 | 05-12-2010 05:06 PM |
Need help with metadata by filename | artbatista | Calibre | 17 | 12-19-2009 07:51 AM |