View Single Post
Old 09-13-2019, 07:17 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,034
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DarkGhosty View Post
I used calibre to manage my doujinshi and have set up custom columns for this as well such as Comiket and circle. I want to use regex to import metadata from the title which is standardized into the correct fields when importing the books.

I want to take a name like this
(C87) [Abradeli Kami (Bobobo)] Gyan☆Colle (Gundam Build Fighters Try)
which translates to
(comiket #) [Group (Author)] Title (Parody)

I have custom columns set up for parody, group, and comiket so I would like a regex that outputs the title, author, comiket (number only ignoring the C), group, and parody.

This is the regeix I have so far, I dont know how to pull the title out yet, nor do I know how to link the groups in the right order. Sorry I suck a regex. Also I'm not sure you can import metadata from the title into a custom column... is there a way to do this?Thanks!

(?P<title>() (?P<author>\[[^]]+?\(([^(]+)\)\]) (?P<comiket>[0-9]+) (?P<group>\[([^\[\]()]+)) (?P<parody>(?:\([^)]*\)[^(]*){2}\(([^)]*)\))
The GetFileName FileType plugin might be of interest ==>> Index of plugins

At add time it will put the file name and/or path into a designated custom column. From there you can use the Bulk metadata edit->Search and replace tool to extract items from the file name strings and and put them into designated custom columns.

BR
BetterRed is offline   Reply With Quote