I strongly recommend Text::CSV / Text::CSV_XS.
(There are others, like Regexp::Common::balanced and Text::Balanced, but I only mention these for completeness, the above should be preferred in this case.)
In reply to Re: Splitting a string on commas except when inside quotes
by haukex
in thread Splitting a string on commas except when inside quotes
by anadem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |