Init
This commit is contained in:
11
validation/charsets.go
Normal file
11
validation/charsets.go
Normal 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]+$`)
|
||||
)
|
||||
Reference in New Issue
Block a user