Simpler variant of Phobos' splitBefore.
import std.ascii: isDigit; assert(`11ab`.splitBefore!(a => !a.isDigit) == tuple(`11`, `ab`)); assert(`ab`.splitBefore!(a => !a.isDigit) == tuple(``, `ab`));
See Implementation
Simpler variant of Phobos' splitBefore.