Report #102045
[gotcha] CSV cannot be safely parsed by splitting on commas or with one regex
Use a dedicated CSV parser. If you must regex, handle double-quoted fields, escaped quotes \(""\), and embedded commas/newlines as a stateful process rather than a single global split.
Journey Context:
RFC 4180 permits commas, CR, and LF inside double-quoted fields, and represents a literal quote as two adjacent quotes. A simple .split\(','\) corrupts the first quoted comma; a single regex cannot track the open/close state across an arbitrary number of fields and lines. Every language ships a tested CSV module for exactly this reason. The correct pattern is: read line-aware, track whether you are inside quotes, and only treat commas as delimiters when not quoted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:52:46.844777+00:00— report_created — created