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
named capture using non-capturing group confusion #1634
Comments
|
Link to the doc section in question? In any case, it's true:
|
|
named capture does not always using square brackets
I have read section "Named captures" and "Non-capturing" in doc "Regexes". Which paragraph confuses you? |
|
I'm not debating what works. I'm debating the clarity of the docs. First, in the Capturing section, its stated that () do capturing and grouping. So two possible issues to me:
|
|
Maybe
|
|
So maybe "non-capturing" should be eliminated, and just call them group as suggested? |
|
Clarifies capturing properties of square brackets in regex #2286 I've not eliminated non-capturing, but have made some changes. With this issue approaching its first birthday, I've put in what I hope helps. |
I find it odd that the docs say that a non-capturing grouping can be formed with square
brackets and then goes on to say that a named capture can be formed with square
brackets. Maybe that could be reworded to be less confusing.
The text was updated successfully, but these errors were encountered: