View Single Post
Old 11-25-2011, 02:04 PM   #8
Nerumshah
Junior Member
Nerumshah began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2011
Device: Kindle Keyboard
I happily discovered both metamorphose and the options on adding books in preferences, and i found one that would fit most of my library but:

For the filename:
Adams, Douglas - Hitchhiker 2 - The Restaurant at the End of the Universe.lit

(?P<author>.+) - (?P<title>.+) gives: author=Adams, Douglas - Hitchhiker 2 and title=The Restaurant at the End of the Universe

How to correct my regular expression to get only the first part before the first " - " on any book to be considered as author, and the whole rest as title?

Last edited by Nerumshah; 11-25-2011 at 02:19 PM. Reason: unclear question
Nerumshah is offline   Reply With Quote