From: William James Date: 2007-09-17T10:15:06+09:00 Subject: Re: Split On Sep 16, 7:03 pm, Lee Jarvis wrote: > Ok guys im looking for something sexy to split this HTML (This HAS to be > done using split, nothing else) > > hi, there, fred, > > I would like to split them values into an array, Is there any chance > this can be done? Because im beginning to think there isn't "hi, there, fred,".scan(/(.*?)<.b>/). flatten ==>["hi", "there", "fred"] "hi, there, fred,". split(%r{|[, ]*(?:)?}) ==>["", "hi", "there", "fred"]