Help with Regular Expressions (std.regex)

user1234 user1234 at 12.de
Sun Mar 3 19:27:17 UTC 2019


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 mind
>
>   import std.array: array;
>   import std.alogrithm.iteration : map;
>   auto allMatches = matchAll(line, pattern).map(a => 
> a.hit).array;

oops forgot the bang

   auto allMatches = matchAll(line, pattern).map!(a => 
a.hit).array;




More information about the Digitalmars-d-learn mailing list