From: Johan Veenstra Date: 2006-02-28T18:39:49+09:00 Subject: Re: string contains one of these??? ------=_Part_11648_25989153.1141119573141 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline And the winner is ... On 2/28/06, hitesh.jasani@gmail.com wrote: > > You've got a bunch of great answers already, but here's another option. > > leagues =3D %w(1D 2D U16 U19 LR RR JNL NL) > words =3D "some stuff NL is chunky" > > irb(main):008:0> words.split & leagues > =3D> ["NL"] > > > - Hitesh > http://www.jasani.org/ > > > ------=_Part_11648_25989153.1141119573141--