* Graham * Waplocus
var $x=1
var $offset=0
var $count=0
var $path= <xt:url type="path" />/
@loop
var $start = call strpos $haystack=$path;$needle=/;$offset=$offset
var $end= call strpos $haystack=$path;$needle=/;$offset=($start+1)
var $name=call substr $val=$path;$start=($start+1);$length=($end-$start-1)
var $offset=($start+1)
var $count=($count+1)
if $count < $x 
goto @loop
endif
print $name

Copy code
Increase the value of x for other parts of the path
2017-11-18 10:56 · (0)

Online: Guests: 1