srpmproc/pkg/rpmutils/regex.go

8 lines
142 B
Go
Raw Normal View History

package rpmutils
import "regexp"
var (
2022-11-06 03:53:02 +00:00
Nvr = regexp.MustCompile("^(\\S+)-([\\w~%.+]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
)