I'm trying to parse really complicated csv, which is generated wittout any quotes for columns with commas.
The only tip I get, that commas with whitespace before or after are included in field.
Jake,HomePC,Microsoft VS2010, Microsoft Office 2010
Should be parsed to
Jake
HomePC
Microsoft VS2010, Microsoft Office 2010
Can anybody advice please on how to include "\s," and ,"\s" to column body.
If your language supports lookbehind assertions, split on
In C#:
split by r"(?!\s+),(?!\s+)"
in python you can do this like
Try this. It gave me the desired result which you have mentioned.
Please note that the code is in Java.