in reply to Splitting a comma-delimited string where a substring could contain commas

You're going to want to treat this as CSV and use the module Text::CSV_XS. A regex is not as well suited to parsing data as a real parser is (i.e. what if you data has quotes, how do you want it to act?).

grep
Unix - where you can thrown the manual on the keyboard and get a command

Replies are listed 'Best First'.
Re: Re: regex problems
by samtregar (Abbot) on May 03, 2002 at 19:10 UTC
    Can you show an example that works? I don't think Text::CSV_XS will work with embedded, unescaped, commas in a CSV.

    -sam