From: Jeff H. <je...@ac...> - 2006-08-09 08:22:39
|
Arjen Markus wrote: >> if {![regexp -- (.*)=(.*) $x dummy varname val]} { >> set varname anonymous >> set val $x >> } > Shouldn't this be [string first]? That solution is better IMHO than the > [regex] one: > Consider a string like: > x="y=z" Correct or not, the regexp is string last because it is greedy. I do believe that the example is correct for CGI, where the quoted string you gave would not be legal (it would be encoded). Jeff |