Hello everybody!
First of all: thanks for the great work and sorry (in the likely case I am missing something quite obvious here).
I am working on a series of custom export filters (to html) and am facing the following strange behaviour when using the replace-function to generate unique years for the needed citation style from year + part of the bibtexkey (the automatically generated a-z letters).
Using \year\format[Replace("(^forthcoming$|^.(?=[a-z]$)|.\d$),")]{\bibtexkey} works as expected (c.f. http://regexpal.com/) with the exception of cases with "forthcoming", where the result is forthcomingg.
Here the first match of the group for some reason doesn't catch and the second one does what it does (i.e. match everything but the last letter, which is subsequently replaced by "" and, when combined with the value of "year" gets us "forthcommingg"). Interresstingly the last group, .*\d$, works perfectly fine, so grouping seems to work in general.
Any ideas?
Thanks, all the very best!
a