incredible string slice feature in Ruby that allows you to match against a regex and extract capture groups in a shorthand way

learned this in a @gorails.com video with Chris Oliver

more details: https://github.com/jbranchaud/til/blob/master/ruby/extract-capture-group-matches-with-string-slices.md
Post image

Comments