match_result = nil "hello".scan(/.l/) do |m| match_result = m end match_result # => el
I expect match_result in the above example to be ll
ll
Crystal 0.19.4 (2016-10-07)
Try .(?=l).
.(?=l)
Most helpful comment
Try
.(?=l).