[ Team LiB ] Previous Section Next Section

Regular Expression Command Enhancements

Both regexp and regsub gained a -start option, which indicates a starting offset into the string being matched. The new regexp -inline option can return the matching characters, rather than storing them in a variable. The regexp -all option finds all occurrences of the match pattern; in conjunction with the -inline option it returns all the matches as a list, whereas without the -inline option it returns the number of matches.

    [ Team LiB ] Previous Section Next Section