In Ruby, what's a regular expression that identifies commas within quotes (e.g., "dog, cat, foo, bar")? My purpose is converting a CSV file to TSV, and some of my fields contain strings with commas within quotes that I want to preserve.
In Ruby, what's a regular expression that identifies commas within quotes (e.g., "dog, cat, foo, bar")? My purpose is converting a CSV file to TSV, and some of my fields contain strings with commas within quotes that I want to preserve.