Documentation ¶
Index ¶
Constants ¶
View Source
const ( PhonePattern = `` /* 133-byte string literal not displayed */ PhonesWithExtsPattern = `` /* 273-byte string literal not displayed */ LinkPattern = `` /* 176-byte string literal not displayed */ EmailPattern = `(?i)([A-Za-z0-9!#$%&'*+\/=?^_{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)` IPv4Pattern = `(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)` IPv6Pattern = `` /* 1224-byte string literal not displayed */ IPPattern = IPv4Pattern + `|` + IPv6Pattern )
Variables ¶
View Source
var ( PhoneRegex = regexp.MustCompile(PhonePattern) PhonesWithExtsRegex = regexp.MustCompile(PhonesWithExtsPattern) LinkRegex = regexp.MustCompile(LinkPattern) EmailRegex = regexp.MustCompile(EmailPattern) IPv4Regex = regexp.MustCompile(IPv4Pattern) IPv6Regex = regexp.MustCompile(IPv6Pattern) IPRegex = regexp.MustCompile(IPPattern) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.