Pattern Matching

Many Tcl commands support pattern matching in any of three styles: Commands that support pattern matching share a common set of options to specify the style:

Commands That Support Pattern Matching

lsearch
Supports all three forms.
lmatch
Supports all three forms.
switch
Supports all three forms.
string match
Supports globbing.
regexp
Supports regular expressions.
regsub
Supports regular expressions.
scanmatch
Supports regular expressions.

Exact Pattern Matching

Globbing

Regular Expressions


Keith Waclena
The University of Chicago Library
This page last updated: Tue Aug 2 12:22:46 CDT 1994
This page was generated from Extended HTML by xhtml.