is going to support returning multiple matches for a single repeated group.
R=r, rsc, mpvl
CC=golang-dev
https://golang.org/cl/
5014045
}
var partRe = regexp.MustCompile(`@Part(\d) # (.*)\n`) // TODO: using $ iso \n does not work
-// TODO: the following regexp does not work: `^(?:([\dA-F ]+);){5} # (.*)\n`
-var testRe = regexp.MustCompile(`^(?:([\dA-F ]+);)(?:([\dA-F ]+);)(?:([\dA-F ]+);)(?:([\dA-F ]+);)(?:([\dA-F ]+);) # (.*)\n`)
+var testRe = regexp.MustCompile(`^` + strings.Repeat(`([\dA-F ]+);`, 5) + ` # (.*)\n`)
var counter int