srpmproc/pkg/rpmutils/regex.go

7 lines
174 B
Go
Raw Normal View History

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