@@ -470,29 +470,6 @@ line. And because of `m` flag now regular expression engine matches pattern at t
470
470
471
471
[ Test the regular expression] ( https://regex101.com/r/E88WE2/1 )
472
472
473
- ## Bonus
474
-
475
- * * Positive Integers* : ` ^\d+$ `
476
- * * Negative Integers* : ` ^-\d+$ `
477
- * * US Phone Number* : ` ^+?[\d\s]{3,}$ `
478
- * * US Phone with code* : ` ^+?[\d\s]+(?[\d\s]{10,}$ `
479
- * * Integers* : ` ^-?\d+$ `
480
- * * Username* : ` ^[\w.]{4,16}$ `
481
- * * Alpha-numeric characters* : ` ^[a-zA-Z0-9]*$ `
482
- * * Alpha-numeric characters with spaces* : ` ^[a-zA-Z0-9 ]*$ `
483
- * * Password* : ` ^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$ `
484
- * * email* : ` ^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})*$ `
485
- * * 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]?))*$ `
486
- * * Lowercase letters only* : ` ^([a-z])*$ `
487
- * * Uppercase letters only* : ` ^([A-Z])*$ `
488
- * * URL* : ` ^(((http|https|ftp):\/\/)?([[a-zA-Z0-9]\-\.])+(\.)([[a-zA-Z0-9]]){2,4}([[a-zA-Z0-9]\/+=%&_\.~?\-]*))*$ `
489
- * * VISA credit card numbers* : ` ^(4[0-9]{12}(?:[0-9]{3})?)*$ `
490
- * * Date (DD/MM/YYYY)* : ` ^(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20)?[0-9]{2}$ `
491
- * * Date (MM/DD/YYYY)* : ` ^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2}$ `
492
- * * Date (YYYY/MM/DD)* : ` ^(19|20)?[0-9]{2}[- /.](0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])$ `
493
- * * MasterCard credit card numbers* : ` ^(5[1-5][0-9]{14})*$ `
494
- * * Hashtags* : Including hashtags with preceding text (abc123#xyz456) or containing white spaces within square brackets (#[ foo bar] ) : ` \S*#(?:\[[^\]]+\]|\S+) `
495
- * * @mentions * : ` \B@[a-z0-9_-]+ `
496
473
## Contribution
497
474
498
475
* Report issues
0 commit comments