View Single Post
Old 10-03-2019, 11:25 AM   #1
Horus68
Zealot
Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.Horus68 understands the mechanisms of the catecholamine pathways.
 
Horus68's Avatar
 
Posts: 143
Karma: 76596
Join Date: Feb 2015
Location: Portugal
Device: Kobo Aura HD
Concatenate arguments in a replace function - Save to disk

Newbie question and after reading the docs https://manual.calibre-ebook.com/template_lang.html on functions and I had no clue how to get it implemented!

How can I concatenate arguments in a replace function when saving to disk template?

Lets say I want to replace the punctuation signs ! and ? with an underscore from the title field when saving to disk using template.

this works for one...
Code:
{title:re(\!,_)}
how can I also replace ? with an underscore in the same field ?

Last edited by Horus68; 10-03-2019 at 11:31 AM.
Horus68 is offline   Reply With Quote