![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Nook
|
Multiple Field Regular Expressions
I imagine this can be done in Calibre already, but I'm not seeing how to do it, so maybe someone can enlighten me.
Is there a way, during a bulk metadata edit, to set fields from more than one match? IE, put \1 into series, \2 into series_index, and \3 into title? If not directly, any ideas on how to approach doing so? (I'm a perl programmer; using regexes to extract data is second nature. I just don't see how to get it from the captures to the fields easily) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run it multiple times. The first time put \1 into series. The second time put \2 into series_index and so on.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Nook
|
Thanks. That's what I was doing, I was just hoping to do it in one fell swoop.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regular Expressions help | deamonfruba | Library Management | 2 | 06-02-2012 02:09 AM |
Help with regular expressions | MostlyCarbon | Library Management | 0 | 02-04-2012 03:00 PM |
Regular expressions - Single back-reference, multiple instances? | David Kudler | Sigil | 10 | 12-17-2011 12:05 PM |
Regular Expressions | geormes | Calibre | 4 | 08-04-2011 07:09 AM |
Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 11:04 AM |