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 09-14-2012, 12:14 AM   #1
TheDauthi
Junior Member
TheDauthi began at the beginning.
 
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)
TheDauthi is offline   Reply With Quote
Old 09-14-2012, 02:01 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-14-2012, 03:21 AM   #3
TheDauthi
Junior Member
TheDauthi began at the beginning.
 
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.
TheDauthi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:48 PM.


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