purescript-strings
purescript-strings copied to clipboard
Add support for matchAll?
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.