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