in reply to split on comma-separated fields, where a field may have commas inside quotes
@chunks = $str =~ /[^,"]*(?:"[^"]*"[^,"]*)*/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split on comma-separated fields, where a field may have commas inside quotes
by Roy Johnson (Monsignor) on Jun 10, 2009 at 21:00 UTC | |
|
Re^2: split on comma-separated fields, where a field may have commas inside quotes
by Anonymous Monk on Jun 10, 2009 at 13:47 UTC | |
by JavaFan (Canon) on Jun 10, 2009 at 14:28 UTC | |
by CountZero (Bishop) on Jun 10, 2009 at 18:33 UTC |