How do you construct the regexp using the word anchors? the current code for in is:
in {
set expr [join [lrange $args $i end] "|"]
append condition "\[regexp \"$expr\" $arg1\] "
set next [llength $args]
}
The 'inlist' addition uses the following:
inlist {
set expr [lrange $args $i end]
append condition "\[expr \[lsearch \"$expr\" $arg1\] + 1] "
set next [llength $args]
}
inlist works even when you construct the list in tcl, will your regexp work in that situation? Should inlist be added for future use?