Report #100187
[gotcha] Parsing CSV with regex
Use a dedicated CSV parser: Python \`csv\` module, \`pandas.read\_csv\`, or JS \`papaparse\`. If you must split manually, first handle quoted fields and escaped quotes \(\`""\`\).
Journey Context:
RFC 4180 CSV allows commas and newlines inside double-quoted fields and represents literal quotes as \`""\`. A regex split on commas corrupts rows like \`"1600 Amphitheatre, Mountain View, CA"\`. Writing a regex to cover all edge cases essentially rebuilds a state machine that the standard library already provides. Dedicated parsers correctly handle dialects, embedded newlines, and quote escaping.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:48:05.532010+00:00— report_created — created