DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

lmatch(1tcl)


lmatch -- return list entries matching specified pattern

Synopsis

lmatch [mode] list pattern

Description

Searches the elements of list, returning a list of all elements matching pattern. If none match, an empty list is returned.

The mode argument indicates how the elements of the list are to be matched against pattern and it must have one of the following values:


-exact
The list element must contain exactly the same string as pattern.

-glob
pattern is a glob-style pattern which is matched against each list element using the same rules as the string match command.

-regexp
pattern is treated as a regular expression and matched against each list element using the same rules as the regexp command.

If mode is omitted then it defaults to -glob.


25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004