purescript-strings icon indicating copy to clipboard operation
purescript-strings copied to clipboard

Add support for matchAll?

Open chtenb opened this issue 3 years ago • 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?

chtenb avatar Jun 04 '21 10:06 chtenb

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

JordanMartinez avatar Dec 01 '21 03:12 JordanMartinez