Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2011, 04:04 AM   #1
clonetom
Junior Member
clonetom began at the beginning.
 
clonetom's Avatar
 
Posts: 3
Karma: 10
Join Date: May 2011
Device: HP TM2
Import expression request

Hi all,

I have a large (really large ) set of ebooks that I would like to import into Calibre but the import expressions are giving me a real headache.

The naming system of my file names is random with one exception:

1. at the end of the file name (before the file extension, i.e. .pdf, .epub) is always the 10/13 digit ISBN number
2. and before the ISBN there is always a <space>

Now if someone could help me with an expression so that I can import...

a. everything before <space> ISBN into the <title> (only need this for quick referencing - will be overwritten if metadata is found)
b. and the ISBN number into <isbn>... (as basis for the metadata search)

I would be very grateful


Note: a typical file name would look like this:

Contemporary Eastern Philosophy John Doe 1 9781232343456.pdf
Leadership Ethics John Doe Jane Smith 1 1232343456.djvu
Encyclopedia of Social Theory 2Ed Vol1 John Doe John Smith 1 1232343456.chm

Thanks in advance
Tom
clonetom is offline   Reply With Quote
Old 08-30-2011, 04:26 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by clonetom View Post
Now if someone could help me with an expression so that I can import...

a. everything before <space> ISBN into the <title> (only need this for quick referencing - will be overwritten if metadata is found)
b. and the ISBN number into <isbn>... (as basis for the metadata search
This seems to do the trick.

Code:
(?P<title>.+) ? (?P<isbn>[^_]+)
Good Luck.
DoctorOhh is offline   Reply With Quote
Advert
Old 08-30-2011, 05:10 AM   #3
clonetom
Junior Member
clonetom began at the beginning.
 
clonetom's Avatar
 
Posts: 3
Karma: 10
Join Date: May 2011
Device: HP TM2
Thanks indeed

You've just made me the happiest person around !!!!

take care, tom
clonetom is offline   Reply With Quote
Reply

Tags
expression, import, isbn


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre book adding: Regular expression request... Spiffy Calibre 34 01-19-2016 01:03 PM
Import expression request eirek Library Management 4 05-17-2011 03:46 AM
REQUEST: Choosing duplicates to import Giuseppe Chillem Calibre 1 01-08-2011 12:34 PM
Need an import expression to use sub-foldername as series santiagodraco Calibre 3 06-10-2010 07:54 AM
What is the default regular expression for filename import? palex481 Calibre 2 03-22-2009 06:11 PM


All times are GMT -4. The time now is 11:24 PM.


MobileRead.com is a privately owned, operated and funded community.