We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d970f1d commit 2ef3a0dCopy full SHA for 2ef3a0d
zh/04.2.md
@@ -64,7 +64,7 @@ if m, _ := regexp.MatchString("^[a-zA-Z]+$", r.Form.Get("engname")); !m {
64
你想知道用户输入的一个Email地址是否正确,通过如下这个方式可以验证:
65
```Go
66
67
-if m, _ := regexp.MatchString(`^([\w\.\_]{2,10})@(\w{1,}).([a-z]{2,4})$`, r.Form.Get("email")); !m {
+if m, _ := regexp.MatchString(`^([\w\.\_]{2,10})@(\w{1,})\.([a-z]{2,4})$`, r.Form.Get("email")); !m {
68
fmt.Println("no")
69
}else{
70
fmt.Println("yes")
0 commit comments