View Single Post
Old 12-22-2013, 03:14 PM   #349
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by nynaevelan View Post
Thank you eschwartz it works perfectly.

Ok, Eschwartz: I have another challenging question for you. I have tags like "Romance/International" or "Read - Romance/International". Is there any way to shorten it with a plugboard to the first letter before the "-" and before and after the "/". In other words it would show up as "R - R/I" or "R/I".

I know you are thinking why do I need all this crap, but it is the tags, purchased and series info that goes into collections, and this helps with the PW2 update debacle.
I believe this will require a regex, using the {tags:re(search,replace)} template.

I will start working on it -- it's all right, I find it fun, and I've been wanting experience with regex-creation anyway, so any excuse is good.

To clarify: You want to take anything in the format
Quote:
TagStartOptional - TagMiddleRequired/TagEndRequired
with NONE of the following three characters except as separators: "/ -" and use ONLY the first letter of each, with separators left in?
eschwartz is offline   Reply With Quote