Re: chaining splitters

2015-03-12 Thread dnoob via Digitalmars-d-learn
Yes. That's it! Thanks a lot. On Wednesday, 11 March 2015 at 09:29:12 UTC, Dave S wrote: On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = "some very long text"; foreach(line; splitter(text, [13, 10])) { f

Re: chaining splitters

2015-03-11 Thread Baz via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = "some very long text"; foreach(line; splitter(text, [13, 10])) { foreach(record; splitter(line, '*')) { foreach(field; splitter(record

Re: chaining splitters

2015-03-11 Thread Dave S via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = "some very long text"; foreach(line; splitter(text, [13, 10])) { foreach(record; splitter(line, '*')) { foreach(field; splitter(record

Re: chaining splitters

2015-03-11 Thread ketmar via Digitalmars-d-learn
On Wed, 11 Mar 2015 00:00:38 +, dnoob wrote: > Hello, > > I am parsing some text and I have the following; > > string text = "some very long text"; > > foreach(line; splitter(text, [13, 10])) > { > foreach(record; splitter(line, '*')) > { > foreach(field; splitter(

Re: chaining splitters

2015-03-10 Thread Dennis Ritchie via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = "some very long text"; foreach(line; splitter(text, [13, 10])) { foreach(record; splitter(line, '*')) { foreach(field; splitter(record

chaining splitters

2015-03-10 Thread dnoob via Digitalmars-d-learn
Hello, I am parsing some text and I have the following; string text = "some very long text"; foreach(line; splitter(text, [13, 10])) { foreach(record; splitter(line, '*')) { foreach(field; splitter(record, '=')) { foreach(v