srpmproc/pkg/rpmutils/regex.go

7 lines
176 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.
2022-11-15 14:14:59 +00:00
var Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w~%+]+)+?)(?:\\.rpm)?$")