![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: Sep 2015
Device: Kindle Oasis
|
Regex Help Needed
![]() I am not a programmer or dba by any stretch of the imagination. I have spent the better part of a half day trying to get a simple regex import to work. I give up.... My files are named like so. Author - (Series-01) (2012) Title.epub My regex is (?P<author>.+) - (?P<series>[^)].+)-(?P<series_index>\d.+)\s(?P<published>[^_].+)\s(?P<title>[^_].+) See screen capture for result Thanks for any help! G |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Try:
Code:
(?P<author>.+) - \((?P<series>[^)]+)-(?P<series_index>\d+)\) \((?P<published>.+)\) (?P<title>.+) See how I've used the parentheses to mark out the different fields. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
More help needed: regex for add books | macnab69 | Library Management | 11 | 06-17-2013 12:15 PM |
Help with regex needed. | kamanza | Library Management | 3 | 01-24-2012 07:27 AM |
RegEx Help needed | ghostyjack | Sigil | 14 | 11-02-2011 10:22 AM |
RegEx REPLACEMENT: Help needed! | LARdT | Sigil | 12 | 01-04-2010 07:25 PM |
Regex help needed | gandor62 | Calibre | 2 | 11-04-2009 10:27 AM |