Based on this tei
example, target='example.com#ktu1-1_ii_l13b-14_tmġyn'
I would like to remove everything before (and including) #
and everything after (and including) the last _
, the first two underscores must be replaced by :
. I have tried:
<xsl:variable name="verb" select="replace(replace(tokenize (@target, '\s+')!substring-after(., '#'), '_', ':'), '.+:.+.:', '')"/>
But this gives the opposite of the expected result (tmġyn) when the expected result should be ktu1-1:ii:l13b-14.
In advance, thanks so very much for your kind help.