File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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]\/+=%&_\.~?\-]*))*$ `
You can’t perform that action at this time.
0 commit comments