scanmatch is a part of a set of commands that can be used to look through an open file for regular expressions and, when finding those expressions, cause some action to take place. ---- scanmatch is the command which the programmer uses to define the relationship between regular expression and tcl code to execute. ---- See also [scancontext] and [scanfile]. ---- [Category Command], a part of [TclX]