Fix #225 to work with Ruby 1.8.7

Named capture is not supported in Ruby 1.8.7.