From: James Gray Date: 2009-05-01T10:06:08+09:00 Subject: Re: FCSV importing file to Excel On Apr 30, 2009, at 6:30 AM, Mark Thomas wrote: > On Apr 29, 8:46 am, James Gray wrote: > >> "=HYPERLINK(""http://www.radiofreetexas.org/"", ""ClickHere"")" >> >> Unfortunately, I can't think of an easy way to break up data like >> that. You would likely need to build your own parser to handle it. > > You mean like this? > > str.gsub(/"(?!")/, "") I'm not real sure what you are aiming for here. I doubt this helps read the data in the intended manner: $ irb -rubygems >> require "faster_csv" => true >> str = %Q{=HYPERLINK("http://www.radiofreetexas.org/","ClickHere")} => "=HYPERLINK(\"http://www.radiofreetexas.org/\",\"ClickHere\")" >> FCSV.parse(str.gsub(/"(?!")/, "")) => [["=HYPERLINK(http://www.radiofreetexas.org/", "ClickHere)"]] James Edward Gray II