Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for matchAll? #149

Open
chtenb opened this issue Jun 4, 2021 · 1 comment
Open

Add support for matchAll? #149

chtenb opened this issue Jun 4, 2021 · 1 comment
Labels
status: needs more info This issue needs more info before any action can be done.

Comments

@chtenb
Copy link

chtenb commented Jun 4, 2021

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?

@JordanMartinez JordanMartinez added the status: needs more info This issue needs more info before any action can be done. label Dec 1, 2021
@JordanMartinez
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs more info This issue needs more info before any action can be done.
Projects
None yet
Development

No branches or pull requests

2 participants