AWK Easy · Lesson 3

Advanced regex: match, gensub and word boundaries

Capture groups with match's array, rewrite with gensub, use word-boundary anchors, and extract structured pieces from a line.

Lessons · AWK Easy · Lesson 3 of 10

Advanced regex: match, gensub and word boundaries

Capture groups with match's array, rewrite with gensub, use word-boundary anchors, and extract structured pieces from a line.

Illustration for AWK
Capture groups with match's array, rewrite with gensub, use word-boundary anchors, and extract structured pieces from a line.