Tcl Easy · Lesson 2

Building and parsing strings: string map, split, join, format and scan

Swap many substrings in one pass with string map, split and join on separators, validate input with string is -strict, and lay out text with format.

Lessons · Tcl Easy · Lesson 2 of 10

Building and parsing strings: string map, split, join, format and scan

Swap many substrings in one pass with string map, split and join on separators, validate input with string is -strict, and lay out text with format.

Illustration for Tcl
Swap many substrings in one pass with string map, split and join on separators, validate input with string is -strict, and lay out text with format.