Parsing regexps and getting the fu**ing error message "parentheses () not balanced"
- From: "domelevo@xxxxxxxxx" <domelevo@xxxxxxxxx>
- Date: 21 Jun 2005 01:30:19 -0700
Hello all!
I'm trying to write a script with this piece of code somewhere:
switch -regexp $current_net {
[^\[]+\Z {
# first case: <net_name> (1bit width)
switch [llength $pins($module_name,$k)] {
......
The first "switch" saying that I want to parse any regexp with no '['
and going to the end of string $current_net.
Then Tcl says :
couldn't compile regular expression pattern: parentheses () not
balanced
while executing
"switch -regexp $current_net {
etc.
How can I get rid of this message? And it's not the first time I have
such odd problems :-)
Thanks.
.
- Follow-Ups:
- Re: Parsing regexps and getting the error message "parentheses () not balanced"
- From: Khaled
- Re: Parsing regexps and getting the error message "parentheses () not balanced"
- From: Khaled
- Re: Parsing regexps and getting the fu**ing error message "parentheses () not balanced"
- From: Andreas Leitgeb
- Re: Parsing regexps and getting the fu**ing error message "parentheses () not balanced"
- From: Donald Arseneau
- Re: Parsing regexps and getting the error message "parentheses () not balanced"
- Prev by Date: Re: behavior of exec in a Linux cron job
- Next by Date: xmessage equivalent
- Previous by thread: Tile 1.0 ?
- Next by thread: Re: Parsing regexps and getting the fu**ing error message "parentheses () not balanced"
- Index(es):
Relevant Pages
|