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