Skip to content

Commit 7a1cbc5

Browse files
zessxziishaned
authored andcommitted
Minor fixes (ziishaned#1)
1 parent 4831a46 commit 7a1cbc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,15 @@ line. And because of `m` flag now regular expression engine matches pattern at t
407407

408408
* *Positive Integers*: `^\d+$`
409409
* *Negative Integers*: `^-\d+$`
410-
* *Phone Number*: `^+?[\d\s]{3,}$`
411-
* *Phone with code*: `^+?[\d\s]+(?[\d\s]{10,}$`
410+
* *US Phone Number*: `^+?[\d\s]{3,}$`
411+
* *US Phone with code*: `^+?[\d\s]+(?[\d\s]{10,}$`
412412
* *Integers*: `^-?\d+$`
413413
* *Username*: `^[\w\d_.]{4,16}$`
414414
* *Alpha-numeric characters*: `^[a-zA-Z0-9]*$`
415415
* *Alpha-numeric characters with spaces*: `^[a-zA-Z0-9 ]*$`
416416
* *Password*: `^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$`
417417
* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$`
418-
* *IP 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]?))*$`
418+
* *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]?))*$`
419419
* *Lowercase letters only*: `^([a-z])*$`
420420
* *Uppercase letters only*: `^([A-Z])*$`
421421
* *URL*: `^(((http|https|ftp):\/\/)?([[a-zA-Z0-9]\-\.])+(\.)([[a-zA-Z0-9]]){2,4}([[a-zA-Z0-9]\/+=%&_\.~?\-]*))*$`

0 commit comments

Comments
 (0)