View Single Post
Old 12-18-2022, 01:19 AM   #1
Req13
Enthusiast
Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!
 
Posts: 28
Karma: 100000
Join Date: Mar 2010
Device: Kindle PW4, Sony PRS-T1, PRS-600 & Nook STR
Replacing characters with the save to disk template

I have been trying to figure out how to use the saving books to disk template.

When I save a book that is named something like:

Mark Twain - Anthologies: How Many Are There?

I would like to replace the colon with a semicolon and remove the question mark so that it comes out as this:

Mark Twain - Anthologies; How Many Are There

Is there a way to achieve that? This is all I've been able to work out so far.

Code:
Replace ? with nothing

{authors} - {title:re(\?,)}
--------------------------------------------------------
Replace ? and : with nothing

{authors} - {title:re(\?|\:,)}
--------------------------------------------------------
Replace : with ;

{authors} - {title:re(:,;)}

I'd also like to possibly add to it if I need to change other special characters to something other than an underscore.

Thanks for any help.
Req13 is offline   Reply With Quote