in reply to csv'ish string with parens that include commas
for( 'sue,fred,x(mary,jane)', 'x(a,b),c(d,e,f),g,h,i(j,k)', 'a,b,cdef(g),h,i(j)' ) { print join' | ', m/( [^,(]+ \( [^)]+ \) | [^,]+ )(?:$|,)/gx; };; sue | fred | x(mary,jane) x(a,b) | c(d,e,f) | g | h | i(j,k) a | b | cdef(g) | h | i(j)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: csv'ish string with parens that include commas
by Anonymous Monk on Dec 05, 2010 at 05:38 UTC | |
by BrowserUk (Patriarch) on Dec 05, 2010 at 07:15 UTC | |
by Anonymous Monk on Dec 06, 2010 at 00:17 UTC |