Code:
program:
id = list_re($#admintags, ',', 'related:(\d+)', '\1');
strcat('<a href="', 'calibre://book-details/My%20Books/',id, '">', 'Related Book','</a>')
This looks for
related:x entries in #admintags, extracts
x and then uses strcat to turn it into a link.
If there's multiple ids returned by the list_re how would I create a link for each one instead of
calibre://book-details/My%20Books/x,y,z?