in reply to Re^3: splinting a line of text by comma
in thread splinting a line of text by comma

... one of the columns has multiple values separated with a comma like an array. ... unwind the array so each value of the array is on a separate line and all other fields are duplicated or carried with it ... [from the OP]

Admittedly not the clearest specification. I was focusing on the "... all other fields are duplicated or carried with it ..." part, which I took to mean that some other fields with commas might be printed.

... mongo documentation of $unwind does what I'd like ...

I don't understand what this means. Is "mongo" a thing?


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^5: splinting a line of text by comma
by poj (Abbot) on Nov 23, 2018 at 07:11 UTC
Re^5: splinting a line of text by comma
by tybalt89 (Monsignor) on Nov 23, 2018 at 04:30 UTC

    I saw the "one of the columns" also and submitted my first solution. Then I thought "why not over design it", since the future is infinite and sometime in there someone will want multiple columns :)