Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2011, 03:49 PM   #1
janrap
Junior Member
janrap began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: sony
Importing books in different format

I have sorted my books in files like

author - title.epub
or
author - series nr - title.epub

is there a regulier expression which can import both file names correctly???

help is much appreciated

Last edited by janrap; 03-16-2011 at 03:56 PM.
janrap is offline   Reply With Quote
Old 03-17-2011, 12:18 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: 8,838
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by janrap View Post
I have sorted my books in files like

author - title.epub
or
author - series nr - title.epub

is there a regulier expression which can import both file names correctly???
Someone else wrote it, but this has worked for me.

Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)
DoctorOhh is offline   Reply With Quote
 
Enthusiast
Old 03-17-2011, 05:31 AM   #3
janrap
Junior Member
janrap began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: sony
Thumbs up

Works perfectly, many thanks
janrap is offline   Reply With Quote
Reply

Tags
regulier expression

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing books handycam Library Management 2 03-14-2011 09:00 AM
Importing multiple books patchoulol Calibre 11 01-19-2011 05:40 PM
Need help with Importing Books Logan06 Calibre 3 01-11-2011 08:48 PM
Problems with importing books hairybiker Calibre 1 09-24-2010 05:30 AM
Itunes 9.1 Released; Allows importing of books in Epub format olddumbguy News 28 04-05-2010 01:54 PM


All times are GMT -4. The time now is 12:53 AM.


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