Evaluated set out [list]; map [top [lreverse [log]] 50] {x {lappend out [last [regexp -inline {v=(.+?)(?:$| |\&|#)} [last $x]]]}}; . $out