From: botp Date: 2012-07-15T19:32:37+09:00 Subject: Re: What is done by Ruby >> s=%w(one.example.com two.testing.com three.four.example.com) > => ["one.example.com", "two.testing.com", "three.four.example.com"] d="example.com" >>s.each do |x| > p [x,x.reverse.start_with?(d.reverse),x=~/#{d}$/] > end ....