Menu

#28 Are regexp arguments checked right?

open
nobody
checker (4)
5
2002-05-09
2002-05-09
No

The following line of tcl code:
regexp -- {-[0-9]+} $i
causes this error in procheck

50 (badRegexp) Bad regexp pattern: bad switch
"-[0-9]+": must be -all, -about, -indices, -inline,
-expanded, -line, -linestop, -lineanchor, -nocase,
-start, or --

I'm using the procheck from ASPN Tcl, which I would
assume is a relatively recent version of checker. I
haven't been able to figure out a flag to procheck for
it to tell me what version it is - -logo doesn't do
it...

Discussion


Log in to post a comment.