in reply to Splitting a line on just commas
Text::CSV_XS but ... if your sample is indicative:
$s = 'a,b,"hey, you","str1, str2, str3",end';; print for split ',(?=\S)', $s;; a b "hey, you" "str1, str2, str3" end
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting a line on just commas
by Anonymous Monk on Jun 14, 2010 at 16:37 UTC | |
by BrowserUk (Patriarch) on Jun 14, 2010 at 17:11 UTC |