Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2026 Changes in this version + var RegularOfCellphone = regexp.MustCompile(`^(\+86(-|\s)?)?1[3-9][0-9]{9}$`) + var RegularOfEmail = regexp.MustCompile(`^[a-zA-Z0-9]{1,20}(([._\-])?[a-zA-Z0-9]{1,20})*@[a-z0-9]+(\.([a-z]+))+$`) + var RegularOfIPv4 = regexp.MustCompile(`^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}$`) + var RegularOfInternalIPv4 = regexp.MustCompile(`(^127\.)|(^10\.)|(^172\.(1[6-9]|2[0-9]|3[0-1])\.)|(^192\.168\.)`) + var RegularOfTelephone = regexp.MustCompile(`^(\d{3,4}-)?[1-9][0-9]{4,8}$`) + var RegularOfWebDomain = regexp.MustCompile(...) + func IsCellphoneOfChina(str string) bool + func IsEmail(str string) bool + func IsIPv4(str string) bool + func IsInternalIPv4(str string) bool + func IsTelephoneOfChina(str string) bool + func IsTimeHourPoint(str string) bool + func IsWebDomain(str string) bool + func RegularMatchString(patten string, s string) (bool, error) + func RegularReplaceMatch(patten string, original string, replace string) (string, error)