regex

package
v0.0.0-...-0d658de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HasCharSpecials = regexp.MustCompile(`[~!@#$%^&*\(\)=:;"'<>,.?\[\]\/\\\{\}|]`)
View Source
var HasCharSpecialsToCnpj = regexp.MustCompile(`[~!@#$%^&*=:;"',?\[\]\\]`)
View Source
var HasCharSpecialsToPhone = regexp.MustCompile(`[~!@#$%^&*=:;"',.?\[\]\/\\]`)
View Source
var HasLetter = regexp.MustCompile(`[A-Za-zÁáÀàÂâÃãÄäÉéÈèÊêËëÍíÌìÏïÓóÔôÕõÖöÚúÙùÛûçÇñÑ]`)
View Source
var HasLowercase = regexp.MustCompile(`[a-záàâãäéèêëíìïóôõöúùûçñ]`)
View Source
var HasNumber = regexp.MustCompile(`\d+`)
View Source
var HasUpppercase = regexp.MustCompile(`[A-ZÁÀÂÃÄÉÈÊËÍÌÏÓÔÕÖÚÙÛÇÑ]`)
View Source
var IsBase64 = regexp.MustCompile(`^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}`)
View Source
var IsEmail = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
View Source
var MimeType = regexp.MustCompile(`image[/]+[a-z]+`)
View Source
var OnlyNumber = regexp.MustCompile(`[^0-9]`)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL