Thank you so much, Chaley! It works perfectly.
I was using list_re instead of list_union. My knowledge of python in limited, hence the ham-handed attempts. I haven't noticed a decrease in Calibre's performance, so a custom template function can wait until I learn more python.
Last edited by TicklishOwl; 09-01-2015 at 03:57 AM.