thanks Zer0Racer for that add. I here add one that works when having [] which is default. I'm no expert at tcl at all so bare with this silly solution:
set output [replacevar $output "%user" [string trim [string trim [lindex $line 1] "\["] "\]"]]
set output [replacevar $output "%request" [string range $line [expr $index2 + [string length $reqsplitter]] end]]
|