From: "J. mp" Date: 2007-06-21T08:10:33+09:00 Subject: strange ... I'm getting crazy WTF: str = "teste@test.com, alf@test.com, joe@teste.com" emails_array = Array.new emails = str.split(",") emails.each do |single_str| tmp = single_str[/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i] if !tmp.nil? emails_array << tmp end end --- Expected result emails_array => ["teste@test.com","alf@test.com","joe@teste.com"] -----Actual result emails_array => [teste@test.com] Can't understand -- Posted via http://www.ruby-forum.com/.