On Sunday, 3 March 2019 at 18:32:14 UTC, user1234 wrote:
On Sunday, 3 March 2019 at 18:07:57 UTC, Samir wrote: or // sorry i don't have the regex API in mindimport std.array: array; import std.alogrithm.iteration : map;auto allMatches = matchAll(line, pattern).map(a => a.hit).array;
oops forgot the bangauto allMatches = matchAll(line, pattern).map!(a => a.hit).array;