How can I walk the list in a RegexMatch backwards?

Chris Bare chris at bareflix.com
Sun Feb 3 18:07:13 UTC 2019


auto matches = matchAll(str, searchRegex);

foreach (m; matches) // this walks the list forward

I tried:
foreach_reverse (m; matches)
foreach (m; reverse (matches))
foreach (m; retro (matches))

and they all failed to compile.
I also tried to index matches (matches[i]) but that does not work 
either.


More information about the Digitalmars-d-learn mailing list