srpmproc/pkg/rpmutils/regex.go
2022-11-06 04:53:02 +01:00

8 lines
142 B
Go

package rpmutils
import "regexp"
var (
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
)