>>74
これじゃあかんか?

"0123456789".scan(/\G[^7]/){|s|p s.to_i*2}
or
"0123456789".scan(/\G[^7]/).map{|s|s.to_i*2}.join