writeln(splitter("abc123def456", regex("[0-9]+", "g")));
outputs: ["abc", "def", ""]But what if I want the "123" and "456" tokens too? Is there a way to do that?
-Steve
writeln(splitter("abc123def456", regex("[0-9]+", "g")));
outputs: ["abc", "def", ""]But what if I want the "123" and "456" tokens too? Is there a way to do that?
-Steve