From: Harry Kakueki Date: 2007-07-06T13:23:42+09:00 Subject: Re: Newbie regexp question > > "My address is 68 Ohio" > > I want to pull address and 68 from the sentence but that pesky is is getting in my way(or im too newb) > > "My address is 68 ohio" =~ /\w{7}\d{2}/ is what i tried but continuous nils. Any help? > > Here is something like what you tried that will skip the 'is'. s = "My address is 68 ohio" p s.scan(/\w{7}|\d{2}/) OR p s.scan(/address|\d+/) Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/