| Regexp and Regsub |
|
|
Online chapter from Tcl/Tk for Programmers (with exercises and solutions). Much programming in Tcl involves handling data from users, files, or other computer programs. Often this data does not arrive in a form that is directly usable. The need to extract useful pieces from the whole is a major reason for you to master regular expressions. You will probably use them a lot. Using regular expressions and using them correctly are not the same thing. It is not uncommon for a badly written regular expression to pass tests only to fail in practice. One of the goals of this chapter is to show you how you can write them well.
|
Author's Home Page |
|
Order from Amazon. |