-
Notifications
You must be signed in to change notification settings - Fork 18k
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
regexp: using (?P<name>re) isn't supported as such #2440
Labels
Milestone
Comments
Owner changed to @rsc. Status changed to Accepted. |
Owner changed to builder@golang.org. |
Owner changed to @rsc. Status changed to Started. |
This issue was closed by revision 21d3721. Status changed to Fixed. |
I can't see that the new regexp.SubexpNames() method buys much (but perhaps that's my mistake). ISTM that what's needed are something like: regexp.Capture(int) (string, error) regexp.CaptureOf(string) (string, error) which return the index-th or named capture's matching text and nil or an empty string and an error (either no such index/name, or no such match). |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: