I am working on a mysql select and insert script but i am having issues with extracting a single line into two variables.
The line is handed as variable $arg and is composed by: "text field 1=text field 2" i try to split $arg by regexp using "=" as the seperator into $arg1 and $arg2 but i always and up with the whole line being parsed to $arg2 and $arg1 being empty.
regexp -- {(\S+)=(\S+)} $arg null $arg1 $arg2
i have tried several methods with regexp and changing the separator but the result remains the same. It is being done with tcl v8.5.
I am not very familiar with tcl so i suspect it's mainly due to lag of understanding of tcl/tk.