View Single Post
Old 06-08-2003, 04:26 PM  
WarC
Senior Member
 
Join Date: Sep 2002
Posts: 426
Default

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]]
WarC is offline   Reply With Quote