Evaluated proc %- {who q} { set id [lsearch -regexp [split [string toupper [%% $who]] "\n"] [string toupper $q]]; if {$id > -1} {set ::playlist($who) [join [lreplace [split $::playlist($who) \n] [expr $id*3] [+ $id 3]] \n]} {. no matches} }