Re: How the hell to split multiple delims?

2020-02-16 Thread evilrat via Digitalmars-d-learn
On Sunday, 16 February 2020 at 09:57:26 UTC, AlphaPurned wrote: 1>Test.d(31): error : template ... 1>Test.d(61): error : template ... 1>Test.d(66): error : cannot implicitly convert expression `l` of type `immutable(char)` to `string` 1>Test.d(31): error : template ... 1>Test.d(79): error : te

Re: How the hell to split multiple delims?

2020-02-16 Thread AlphaPurned via Digitalmars-d-learn
On Saturday, 15 February 2020 at 14:35:59 UTC, Steven Schveighoffer wrote: On 2/15/20 6:32 AM, AlphaPurned wrote: I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch error. Why is someth

Re: How the hell to split multiple delims?

2020-02-15 Thread Paul Backus via Digitalmars-d-learn
On Saturday, 15 February 2020 at 22:30:03 UTC, Craig Dillabaugh wrote: On Saturday, 15 February 2020 at 11:32:42 UTC, AlphaPurned wrote: I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch

Re: How the hell to split multiple delims?

2020-02-15 Thread Craig Dillabaugh via Digitalmars-d-learn
On Saturday, 15 February 2020 at 11:32:42 UTC, AlphaPurned wrote: I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch error. Why is something so easy to do so hard in D? auto toks = std.

Re: How the hell to split multiple delims?

2020-02-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/15/20 6:32 AM, AlphaPurned wrote: I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch error. Why is something so easy to do so hard in D? auto toks = std.regex.split(l, Regex("s"));

Re: How the hell to split multiple delims?

2020-02-15 Thread mipri via Digitalmars-d-learn
On Saturday, 15 February 2020 at 11:32:42 UTC, AlphaPurned wrote: I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch error. Why is something so easy to do so hard in D? auto toks = std.

How the hell to split multiple delims?

2020-02-15 Thread AlphaPurned via Digitalmars-d-learn
I've tried 10 different ways with split and splitter, I've used all the stuff that people have said online but nothing works. I always get a template mismatch error. Why is something so easy to do so hard in D? auto toks = std.regex.split(l, Regex("s")); auto toks = std.regex.splitter(l, Regex