Tcl Easy · Lesson 4

Regular expressions in depth: -all, -inline, captures and regsub

Count and collect every match, pull out capture groups, find match positions, use lazy quantifiers, and rewrite text with regsub backreferences.

Lessons · Tcl Easy · Lesson 4 of 10

Regular expressions in depth: -all, -inline, captures and regsub

Count and collect every match, pull out capture groups, find match positions, use lazy quantifiers, and rewrite text with regsub backreferences.

Illustration for Tcl
Count and collect every match, pull out capture groups, find match positions, use lazy quantifiers, and rewrite text with regsub backreferences.