mirror of
https://gitee.com/johng/gf.git
synced 2024-12-11 04:07:03 +08:00
11 lines
202 B
Go
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"))
|
|
} |