Stuart Clarke wrote: > I am trying to parse data from a file where the values are common > seperated, however there is slightly more to the file than just commas, > see below > > for > (;;);{"t":"msg","c":"p_114000000","ms":[{"type":"msg","msg":{"text":"you > around"}]} That is not valid CSV, so FasterCSV won't help you. I think you'll need to describe more carefully how you want this input line broken up, and give some more examples. It looks to me like a nested structure. If every line has exactly the same set of fields you may get away with a regexp. But if not, you may have to write a full-blown parser for this language. However, this may be sufficiently close to JSON that you could use an existing JSON parser. http://www.json.org/ (But in that case, I don't know what the "for(;;);" is doing on the front) -- Posted via http://www.ruby-forum.com/.