Andy Seaborne Wed, 14 May 2014 01:45:13 -0700
REPLACE(str(?uri), '^.*(#|/)', '')"
which returns the part after the last / or # Andy