As basically stated in the question title, is there a method on Ruby strings that is the equivalent to String#Scan but instead of returning just a list of each match, it would r
memo = [] "foo _bar_ _baz_ hashbang".scan(/_[^_]+_/) { memo << Regexp.last_match } => "foo _bar_ _baz_ hashbang" memo => [#, #]