How the hell to split multiple delims?
Steven Schveighoffer
schveiguy at gmail.com
Sat Feb 15 14:35:59 UTC 2020
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"));
> auto toks = std.regex.splitter(l, Regex("s"));
> auto toks = std.regex.splitter(l, ctRegex!r"\.");
What type is 'l'?
-Steve
More information about the Digitalmars-d-learn
mailing list