Simpler variant of Phobos' split.
import std.ascii: isDigit; assert(`aa1bb`.split!(a => a.isDigit) == tuple(`aa`, `1`, `bb`)); assert(`aa1`.split!(a => a.isDigit) == tuple(`aa`, `1`, ``)); assert(`1bb`.split!(a => a.isDigit) == tuple(``, `1`, `bb`));
See Implementation
Simpler variant of Phobos' split.