{ (id("R06"), id("R03"))!string()[matches(., "(Gesucht|Treffer).*:")][1]! ( let $temp := extract(., "(([0-9]+)[^0-9]+([0-9]+)[^0-9]+)?([0-9]+)$", (2,3)) return ( $firstIndex := number($temp[1]), $lastIndex := number($temp[2])(:, $search-result-count := xs:integer($temp[2]):) ) ) }