Tcl also supports string operations known as regular expressions Several commands can access these methods with a -regexp argument, see the man pages for which commands support regular expressions. There are also two explicit commands for parsing regular expressions. regexp ?
switches? exp string ?
matchVar? ?
subMatch1 ... subMatchN? Searches string for the regular expression exp.
If a parameter matchVar is given, then the substring that matches the regular expression is copied to matchVar. If sub...
원문 링크 : Regular Expressions 101