This commit is contained in:
Fred Boniface
2023-09-01 19:08:59 +01:00
commit 53cae5ebe6
4 changed files with 131 additions and 0 deletions

11
validation/charsets.go Normal file
View File

@@ -0,0 +1,11 @@
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]+$`)
)