Skip to content

Commit 23a0431

Browse files
tiborziishaned
authored andcommitted
Update email regex to match gTLDs (ziishaned#32)
1 parent d60813e commit 23a0431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ line. And because of `m` flag now regular expression engine matches pattern at t
478478
* *Alpha-numeric characters*: `^[a-zA-Z0-9]*$`
479479
* *Alpha-numeric characters with spaces*: `^[a-zA-Z0-9 ]*$`
480480
* *Password*: `^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$`
481-
* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$`
481+
* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})*$`
482482
* *IPv4 address*: `^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$`
483483
* *Lowercase letters only*: `^([a-z])*$`
484484
* *Uppercase letters only*: `^([A-Z])*$`

0 commit comments

Comments
 (0)