std.range.byLine

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 12 06:25:21 PDT 2014


On Thursday, 11 September 2014 at 22:39:40 UTC, H. S. Teoh via 
Digitalmars-d-learn wrote:
> 	foreach (line; myInput.split(regex(`\n|\r\n|\r`)))

Shouldn't you use

  	foreach (line; myInput.split(regex("\n|\r\n|\r")))

here?


More information about the Digitalmars-d-learn mailing list