12 lines
279 B
Go
12 lines
279 B
Go
package validation
|
|
|
|
import "regexp"
|
|
|
|
var (
|
|
ASCII = regexp.MustCompile(`^[\x00-\x7F]+$`)
|
|
ANY = regexp.MustCompile(`.`)
|
|
CODE39 = regexp.MustCompile(`^[0-9A-Z\-\.\ $%*+/]+$`)
|
|
NUMERAL = regexp.MustCompile(`^[0-9]+$`)
|
|
ISO88591 = regexp.MustCompile(`^[\x00-\xFF]+$`)
|
|
)
|