Copyright (C) 2000-2012 |
Manpages lsearchSection: Tcl Built-In Commands (n)Updated: 7.0 Index Return to Main Contents NAMElsearch - See if a list contains a particular elementSYNOPSISlsearch ?mode? list patternDESCRIPTIONThis command searches the elements of list to see if one of them matches pattern. If so, the command returns the index of the first matching element. If not, the command returns -1. 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:
If mode is omitted then it defaults to -glob. KEYWORDSlist, match, pattern, regular expression, search, string
IndexThis document was created by man2html, using the manual pages. Time: 07:48:51 GMT, May 07, 2024 |