Name

scanmatch

scanmatch [-nocase] contexthandle [regexp] commands

Specify Tcl commands to be evaluated when regexp is matched by a scanfile command. The match is added to the scan context specified by context-handle. Any number of match statements may be specified for a given context. With option -nocase, the pattern matching is case insensitive.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.