<0> .. <1> ... <2> ; string match *bat.img* "xbatximgx"
<2> ok... i am trying to write something that will detect whether a variable has "bat<img" in it <2> how do i do that with string match? <2> have tried "string match *bat?img* $filtercheck" but that doesnt seem to work either <3> regexp -- {^bat.img} $filtercheck <2> thanks robb <3> np <2> well actually <2> this is being used in an if statement <2> if {[string match *text* $filtercheck]} <3> if {[regexp -- {^bat.img} $filtercheck]} { do this }