Imagine,

I have

leagues=%w{ 1D 2D U16 U19 LR RR JNL NL}

for a given string, say "some stuff NL is chunky" i want determine which 
of the matches it contains...

now, the hard way (more code, less thought) would be to iterate the 
array and do a ~= on it...but is there a simpler way ???

thanks in advance

-- 
Posted via http://www.ruby-forum.com/.