Exercises, examples and other material relating to training module T205. This topic is presented on public courses
Learning to program in Tcl,
Tcl Basics
Tcl Programming - The Tcl programming language, and Expect
This course covers the fundamentals of the Tcl
programming language. You'll learn about Tcl ... http://www.wellho.net/course/tbfull.html [course] |
Learning to Program in Tcl - The Tcl programming language, and Expect
This course covers the fundamentals of the Tcl
programming language. You'll learn ... http://www.wellho.net/course/tlfull.html [course] |
Regular Expressions are powerful matching tools and you can specify almost anything within them. But there are certain facilities that are naturally ... http://www.wellho.net/mouth/943_Matc ... sions.html [short article] |
In Tcl, all variables hold strings. If you perform an arithmetic operation such as an expr, an incr or a numeric comparision, the incoming strings are ... http://www.wellho.net/mouth/404_How- ... n-Tcl.html [short article] |
Regexp matches a string to a regular expression, and regsub goes one further in that it replaces the found string with something else, saving the transformed ... http://www.wellho.net/mouth/1410_Tcl ... -bits.html [short article] |
Split and join in most languages convert strings of text into arrays / lists / collections of other sorts. But in Tcl, all variables are held as strings, ... http://www.wellho.net/mouth/2472_spl ... xpect.html [short article] |
div class= introhead Multiple attibute user data
/div
So often, data is read into a program line by line or record by record into a text string - ... http://www.wellho.net/solutions/general- ... lines.html [longer article] |
The Tcl language is built around strings Ð everything is a string! In this module we look at basic string handling commands, the string command itself which provides a flexible selection of facilities, and we introduce regular expressions for pattern matching.
This topic is presented on public courses
Learning to program in Tcl,
Tcl Basics
Examples from our training material
| ac_report | Complete example - Access log file analysis |
| apfo | format and append commands |
| brax | Literally matching round brackets in regular expressions |
| ccat | lappend and concat - the difference |
| datematch | Matching a date using a regular expression |
| dm2 | A further date match example |
| hunter | Example of analysis of a log file |
| iconfinder | search for all icon references in a web log |
| match | String matching - using globing |
| poco | Postcode identifier and string splitter |
| rematch | String matching using a regular expression |
| rf | Opening and reading a file |
| rf2 | Using scan to get a field from a string |
| rf2a | Using scan's return value |
| stringinfo | Getting information from a text string |
| stringman | Manipulating a string |
Pictures
String matching in Tcl
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Basic string handling commands.
The string command.
Regular expressions.
The elements of a regular expression.
Manipulating matched regular expressions.
Putting it together.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Tcl/Tk, Expect,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.