in reply to Re: Splitting a line on just commas
in thread Splitting a line on just commas
Ouch! Misusing split, which you attempt to fix by filtering out empty strings, which leads to warnings and the removal of empty fields.
Thing being separated vvvvvvv /(?:\,|(\".*?\"))/ ^^ Separator
How are those two things on equal footing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Splitting a line on just commas
by deMize (Monk) on Jun 14, 2010 at 17:51 UTC | |
by ikegami (Patriarch) on Jun 14, 2010 at 18:05 UTC | |
by deMize (Monk) on Jun 14, 2010 at 18:17 UTC | |
by ikegami (Patriarch) on Jun 14, 2010 at 19:13 UTC | |
by ikegami (Patriarch) on Jun 14, 2010 at 19:15 UTC |