| |||||||||||
| |||||||||||
String matching in Tcl
![]()
Tcl has powereful string handling capabilities - there's not one, not two but three ways of doing string comparisons.
First, you have exact matching where you can say "is this string" or "does this string contain". Then you have glob
style matching, which uses the * and ? characters in the same way as they're used in file name matching. Finally, you
have the much more flexible regular expression system, where you can say "does part of this string match the following
pattern". Regular expressions are exceptionally powerful - you can do a lot in a few characters, but they're not
intuitive. On our Tcl course, we cover all three types of string comparisons and help you leran the differences between
them, and which should be used in what circumstances.
Show a large image More about this subject Associated topic - Tcl/Tk - String Handling in Tcl |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||