Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
LMATCH - Extended TCL
Synopsis * Description

Searches a list for matching patterns.

Synopsis

  • lmatch ?mode? list pattern

Description

Search 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.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved