Please help to resolve a problem related to regular expression and matching everything except "&&".
I have the following script
set bw tu12-1-1-1-3&tu12-1-2-1&&-3&tu12-1-3-1&tu12-1-7-2&&-3
regexp {([^&&]*)} $bw match
puts $match -> the output is "tu12-1-1-1-3"
==========
I wanted to match everything excluding the first &&, so the result should have been "tu12-1-1-1-3&tu12-1-2-1", instead I am getting "tu12-1-1-1-3"
Please help.
Thanks
Sbts1
I have the following script
set bw tu12-1-1-1-3&tu12-1-2-1&&-3&tu12-1-3-1&tu12-1-7-2&&-3
regexp {([^&&]*)} $bw match
puts $match -> the output is "tu12-1-1-1-3"
==========
I wanted to match everything excluding the first &&, so the result should have been "tu12-1-1-1-3&tu12-1-2-1", instead I am getting "tu12-1-1-1-3"
Please help.
Thanks
Sbts1