mirror of
https://github.com/golang/go
synced 2024-11-21 15:54:43 -07:00
exp/norm: reverting to using strings.Repeat, as it doesn't look like exp/regexp
is going to support returning multiple matches for a single repeated group. R=r, rsc, mpvl CC=golang-dev https://golang.org/cl/5014045
This commit is contained in:
parent
1913fdab98
commit
a083fd524a
@ -115,8 +115,7 @@ func (t Test) Name() string {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user