in reply to Re: Is there any regex limitation?
in thread Is there any regex limitation?

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.

Replies are listed 'Best First'.
Re^3: Is there any regex limitation?
by Anonymous Monk on Jul 24, 2011 at 18:01 UTC

    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

      Actually yes you can

      No. You cannot. Some of the fields contain embedded commas.

        No. You cannot. Some of the fields contain embedded commas.

        I know, I didn't say its possible using /,/