Created
February 25, 2012 11:17
-
-
Save built/1907910 to your computer and use it in GitHub Desktop.
Regex for splitting a CSV row while ignoring commas inside quotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields = re.findall("(\"[^\"\r]+\"|[^,\r]+)", row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment