Name

lmatch

lmatch [mode] list pattern

Return a new list, consisting of the elements of list that match pattern. The type of pattern matching is determined by the mode parameter:

-exact

Exact match

-glob

Glob-style matching (default)

-regexp

Regular expression matching

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.