]> Cypherpunks repositories - gostls13.git/commit
Add query to find number of subexpressions.
authorPeter Froehlich <peter.hans.froehlich@gmail.com>
Wed, 23 Dec 2009 21:43:35 +0000 (08:43 +1100)
committerRob Pike <r@golang.org>
Wed, 23 Dec 2009 21:43:35 +0000 (08:43 +1100)
commite1033d07b454c60623995bf84076b85f70e77225
treeddbfbd2be13c85430ffa259e160e7190908ff9f5
parentb266f39b85909caebd22471975573f2b8df3c196
Add query to find number of subexpressions.

This was convenient for me to have without being forced
to parse the regexp myself. I'd understand if it's not
really wanted, but I also think that some meta information
about compiled regexps would be fine.

R=r, rsc
CC=golang-dev
https://golang.org/cl/183044
src/pkg/regexp/all_test.go
src/pkg/regexp/regexp.go