Christian Gollwitzer <
auriocus@gmx.de> schrieb:
Am 30.09.22 um 16:42 schrieb Helmut Giese:
set line { | {NUMBER} {return [mkLeaf NUMBER $1]}}
set patt {|\s+{(.+)}\s+\{}
regexp $patt $line -> lhs
The | is a regexp metacharacter for branching. The regexp matches the
empty string at the beginning of your line:
(chris) 58 % regexp $patt ""
1
Christian
Thanks Christian,
I didn't know that. I must have read it, some time in the past, but
have, I believe, never used it and so it didn't stick.
Phew, I am really relieved.
Thanks again and have a nice weekend
Helmut
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)