purescript/purescript-strings

Add support for matchAll?

chtenb opened this issue · 1 comments

Currently there seems to be no way to iterate over all matches including capturing groups: https://pursuit.purescript.org/packages/purescript-strings/4.0.1/docs/Data.String.Regex

However, javascript has a function which lets you do just this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll

Can we expose this in the regex module?

Could this be implemented across all backends? I assume so, but did want to clarify.