srpmproc/pkg/rpmutils/regex.go

7 lines
176 B
Go

package rpmutils
import "regexp"
// Nvr is a regular expression that matches a NVR.
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")