View Single Post
Old 11-11-2012, 04:57 PM   #1
Junior Member
minorum began at the beginning.
Posts: 9
Karma: 10
Join Date: Dec 2011
Device: Sony PRS-T1, Kobo-Glo
Problems with Bulk Metadata editing


I need some help with regular expression and Bulk Metadate editing.
I am no programmer and have only read the calibre help for regular expressions.

I have created a new collum "genre". Now I want to search in "tags" for a given string like "crim" and if it is found the according genre in this case "Krimi" should be written in the "genre" collum.

I managed to make an regex that finds the word:

I enterd "Krimi" in the exchange field. But what happens now is that the whole contents of the "tags" collum is copied to the new collum and only the letters "crim" are replaced bei "Krimi". But what I want is only the word Krimi in the genre collum and nothing else.

I am quite sure that it can be done. So could anyone help me and write down how this expression should look like?

many thanks

minorum is offline   Reply With Quote