From: Ammar Ali Date: 2010-12-07T13:16:34+09:00 Subject: Re: Split version requirements On Tue, Dec 7, 2010 at 5:55 AM, Intransition wrote: > Problem... > >  "rake >0.8 <1.0".split(/[^>=<]\s+/) >  => ["rak", ">0.", "<1.0"] I can't tell what your goal is exactly, but since the problem is not the inclusion of the > and < in the result, wouldn't a simple /\s+/ do? >> "rake >0.8 <1.0".split(/\s+/) [ "rake", ">0.8", "<1.0" ] Regards, Ammar