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

regexp: failed match with triple quantifier #11905

Closed
ibukanov opened this issue Jul 28, 2015 · 2 comments
Closed

regexp: failed match with triple quantifier #11905

ibukanov opened this issue Jul 28, 2015 · 2 comments
Milestone

Comments

@ibukanov
Copy link

@ibukanov ibukanov commented Jul 28, 2015

The following regexp ^a(/a+(#a+)*)*$ fails to match a/a#a when it should. Adding parenthesis around the first part ^(a)(/a+(#a+)*)*$ apparently fixes the issue and gives a match, see http://play.golang.org/p/6v0VjVNFVN .

For the background, see http://stackoverflow.com/questions/31663430/issue-with-regexp-with-nested-groups-in-golang

@bradfitz bradfitz changed the title regexp - failed match with tripple quantifier regexp: failed match with triple quantifier Jul 28, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jul 28, 2015
@cespare
Copy link
Contributor

@cespare cespare commented Oct 22, 2015

This is another onepass bug. I haven't gotten to the bottom of it yet, but I should be able to send a CL soon. (Hope that's okay even though @rsc was assigned.)

@rsc rsc removed their assignment Nov 5, 2015
@gopherbot
Copy link

@gopherbot gopherbot commented Nov 24, 2015

CL https://golang.org/cl/17195 mentions this issue.

@rsc rsc closed this in e36bf61 Nov 25, 2015
@golang golang locked and limited conversation to collaborators Nov 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.