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 04-25-2011, 02:26 AM   #1
MMAC
Junior Member
MMAC began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2011
Device: Sony PRS 650
Need help with expressions

Hi,

Who can help me out?
All my books are stored:
author - series - title OR author - title

I tried (?P<author>[^_]+) - (?P<series>.+) - (?P<title>.+)

It doens't do what I want:

Abkoude, Chris van - Pietje Bell 2 - Pietje Bell's goocheltoeren.epub
is showing:
Title: Pietje Bell' (missing "s goocheltoeren")
Author: Abkoude, Chris van (which is OK)
Series: Pietje Bell 2 (which is OK)

But

Beckman, Thea - Een bos vol spoken.epub

is showing author and title in the field Title.

All help appreciated!
MMAC is offline   Reply With Quote
Old 04-25-2011, 03:35 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Moderator Notice
Moved to appropriate sub-forum


Try this - you need to change the expression to accommodate your actual titles, which use '-' vs. '_' between items and series are optional:
Code:
(?P<author>[^-]+) - ((?P<series>[^-]+) - )?(?P<title>.+)
That should fix your second problem. Not certain why it's dropping the title components after a quote, I suspect that's a bug.
ldolse is offline   Reply With Quote
Advert
Old 04-25-2011, 05:49 AM   #3
MMAC
Junior Member
MMAC began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2011
Device: Sony PRS 650
Thumbs up Thanks!

Works great. Thank you so much!
MMAC is offline   Reply With Quote
Reply

Tags
calibre, expressions


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with regular expressions Manichean Conversion 10 02-03-2011 02:27 PM
An introduction to regular expressions Manichean Conversion 0 01-26-2011 05:05 PM
Help with Regular Expressions ghostyjack Workshop 2 01-08-2010 11:04 AM
Regular Expressions help needed Phil_C Workshop 20 10-03-2009 12:14 AM
BookDesigner v5 and regular expressions ShineOn Sony Reader 11 08-25-2008 04:06 PM


All times are GMT -4. The time now is 03:26 PM.


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