-
Notifications
You must be signed in to change notification settings - Fork 70
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
Iterate over all matches? #7
Comments
One can iterate over matches with a range-based for loop:
|
What method returns an array or slice of Matches?
That returns: I don't see anything in these docs that returns an array of Match objects. https://godoc.org/github.com/glenn-brown/golang-pkg-pcre/src/pkg/pcre#Matcher.Matches |
@brettdanger - There is not yet an equivalent of Reference: http://stackoverflow.com/a/15459085 @glenn-brown - Any plans to implement some sort of MatchAll() method? |
I actually just implemented it (feel free to commit this if you like it @glenn-brown):
Here's a test to verify the behavior:
|
Is there a way to iterate over all matches (not capture groups)? SImilar to replaceAll but matchall? I can't figure out how to iterate over them. This package doesnt seem to be active though so I may be out of luck.
The text was updated successfully, but these errors were encountered: