3 ms·
Can you parse this 2-row CSV: SomeCommas,MoreCommas,OnlyOneComma,ALotOfCommas ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
by greenshackle2 3y ago
Can you parse this 2-row CSV:
SomeCommas,MoreCommas,OnlyOneComma,ALotOfCommas
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
- euroderf 3y agoPathological cases are never difficult to find for any app.
- greenshackle2 3y agoWrong. Consider the standard backslash escape: represent literal comma as "\,", and literal backslash as "\\". Backslashes are otherwise forbidden. It will be difficult to find pathological cases for this grammar, because they don't exist.
- euroderf 3y agoWell okay, but there's an outer circle of Hell where people write code to manipulate Windows filepaths.