I think I'm supposed to use a template() here. Though I syntaxed something wrong because it's dividing the numbers (e.g. in the screenshot, it should be '21/22'). Oops.
Code:
program:
if
$#fanficcat
&&
$#currentlyreading
&&
$#kobobookmark
then
template(format_number(re_group($#kobobookmark, '.*\/file(\d+).*'),'{0:,d}')/$$#chaptercount)
fi
Also, I noticed the current template gave an error if the #kobobookmark value is
OEBPS/Cover.xhtml#kobo.1.1. Is there a way to change the $#kobobookmark test to account for that?