You can't use split to parse CSV records—at least not the general form of CSV records represented in benlaw's example. It won't work.
Actually yes you can
Using split as I've shown is as-good as benlaws intended solution, with the benefit of no backtracking
But its a solved problem, so Text::CSV or Text::xSV
In reply to Re^3: Is there any regex limitation?
by Anonymous Monk
in thread Is there any regex limitation?
by benlaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |