View Single Post
Old 07-12-2014, 12:48 PM   #1
DeepSeaDiver
Junior Member
DeepSeaDiver began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2014
Device: Kindle Paperwhite2
Bulk metadata edit dialog: Use of regular expressions - how to?

Hi there!

I would need a hint how to insert a text at the beginning of the title field in the search and replace tab of the bulk metadata edit dialog.

I am somehow as bit lost with the documentation for regular expressions and don´t get this to work.

Here is an example of what I try:

Text to insert: "Hero´s name - "

Titles:
Adventure on the hill
Adventure at seaside
Adventure in the living room

Desired result:
Hero´s name - Adventure on the hill
Hero´s name - Adventure at seaside
Hero´s name - Adventure in the living room


Optionally (or better: perfect), it would be cool to copy the content of the series field including index number and insert ist at position of Hero´s Name.
Hero´s name [1] - Adventure on the hill
Hero´s name [2] - Adventure at seaside
Hero´s name [3] - Adventure in the living room

This would be the easiest way and acoording to the Calibre manual it should work.

Quote:
"Finally, in regular expression mode you can copy values from one field to another. Simply make the source and destination field different. The copy can replace the destination field, prepend to the field (add to the front), or append to the field (add at the end)."
I am really missing some more practical examples in the regular expression area of the manual. The functions seem to be very powerful but documentation is a bit tricky to read, at least for me (non native English speaking).

Has somebody done this already and could possibly help me out?


Regards, Olli
DeepSeaDiver is offline   Reply With Quote