Post
by lexikos » 02 Mar 2021, 23:21
It's...annoying? Writing loop code every time? Just write a function returning an array or enumerator, and call that instead. Or use some other solution for automating the repetitive task.
Two functions which have different purposes do not need to be "consistent". RegExReplace replaces all (or limited) matches, like StrReplace. RegExMatch != RegExMatches.
If I implement this, it would likely be as a separate function with different parameters and return value. If you write your own, you can decide what features and behaviour it will have.