View Single Post
Old 03-12-2011, 02:22 PM   #338
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
Quote:
Originally Posted by NiLuJe View Post
@nynaevelan:

If I understand correctly, you want to transform a tag from 'Something.Another' to 'Another'?

You can certainly do that, using re groups & backrefs, with something like:

rename_from:
^(.*?\.)(.*?)$
rename_to:
\2

This specific pattern doesn't handle more than one sublevel, but if you need something that handles more, it shouldn't me much harder to do ^^.
For example,
^(.*?\.)*(.*?)$
\2
supports any number of sublevels while only keeping the deepest sublevel (ie. A.B.C.D.E.F => F).
Thanks, I have a question posted for Chaley regarding this issue, so hopefully I will be able to use something that will allow me to continue to use the plugin, my custom send to template and metadata plugboard.
nynaevelan is offline