Crystal Easy · Lesson 5
Regular expressions
Match text with /regex/, read captures from match and $~, use named groups, scan for every match, and rewrite with gsub and a block.
Lessons · Crystal Easy · Lesson 5 of 10
Regular expressions
Match text with /regex/, read captures from match and $~, use named groups, scan for every match, and rewrite with gsub and a block.

