From: John W Higgins Date: 2011-04-22T11:08:17+09:00 Subject: Re: Parsing text --000e0ce02aaaa52b2804a1785465 Content-Type: text/plain; charset=ISO-8859-1 Good Afternoon, On Thu, Apr 21, 2011 at 6:43 PM, Cyril Jose wrote: > Hey all, > > I have a file where I need to parse information from. The format of the > first line is something like this: > > ">ruby ruby |ruby|ruby ruby|text_i_want| test test" > > I was thinking converting this line into an array, using the .split(//) > You got close - this should work for you .split(/\|/)[3] That will return the 4th group of text for you John --000e0ce02aaaa52b2804a1785465--