regexp

package
v0.0.0-...-4838cc4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRegExpr

type DefaultRegExpr string
const (
	DefaultExprEmail              DefaultRegExpr = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"
	DefaultExprChineseMobilePhone DefaultRegExpr = "^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$"
	DefaultExprIpv4Addr           DefaultRegExpr = "((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})(\\.((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})){3}"
)

func (DefaultRegExpr) CreateRegExp

func (exp DefaultRegExpr) CreateRegExp() (*RegExp, error)

type RegExp

type RegExp struct {
	*regexp.Regexp
}

func CreateRegExp

func CreateRegExp(expr string) (*RegExp, error)

CreateRegExp create

Jump to

Keyboard shortcuts

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