gf/geg/other/test.go
2017-12-28 17:28:32 +08:00

11 lines
202 B
Go

package main
import (
"fmt"
"gitee.com/johng/gf/g/util/gregx"
)
func main() {
fmt.Println(gregx.IsMatchString(`^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$`, "joh-n_cn@johng.cn"))
}