On Mon, Jan 27, 2014 at 2:45 PM, Michael Kay <[email protected]> wrote:
>
> I think the only case I've used in anger is probably count(tokenize($x, ' 
> ')[.]) which eliminates the zero-length tokens that can arise at the start 
> and/or end of the sequence.
>

slight variation

tokenize($url,'/')[.][last()]

that gets me the last bit of a url irrespective of whether it ends with a /
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to