![]() |
#1 |
Junior Member
![]() 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! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>.+) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Apr 2011
Device: Sony PRS 650
|
![]()
Works great. Thank you so much!
![]() |
![]() |
![]() |
![]() |
Tags |
calibre, expressions |
|
![]() |
||||
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 |