Skip to content

Instantly share code, notes, and snippets.

@built
Created February 25, 2012 11:17
Show Gist options
  • Save built/1907910 to your computer and use it in GitHub Desktop.
Save built/1907910 to your computer and use it in GitHub Desktop.
Regex for splitting a CSV row while ignoring commas inside quotes
fields = re.findall("(\"[^\"\r]+\"|[^,\r]+)", row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment