File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 503
503
504
504
[ 正規表現の動作確認をする] ( https://regex101.com/r/E88WE2/1 )
505
505
506
- ## おまけ
507
-
508
- * * 正の整数* : ` ^\d+$ `
509
- * * 負の整数* : ` ^-\d+$ `
510
- * * 米国の電話番号* : ` ^+?[\d\s]{3,}$ `
511
- * * コード付きの米国の電話番号* : ` ^+?[\d\s]+(?[\d\s]{10,}$ `
512
- * * 整数* : ` ^-?\d+$ `
513
- * * ユーザ名* : ` ^[\w.]{4,16}$ `
514
- * * 英数字* : ` ^[a-zA-Z0-9]*$ `
515
- * * スペース込みの英数字* : ` ^[a-zA-Z0-9 ]*$ `
516
- * * パスワード* : ` ^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$ `
517
- * * Eメール* : ` ^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})*$ `
518
- * * IPv4 アドレス* : ` ^((?:(?: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]?))*$ `
519
- * * 小文字のみ* : ` ^([a-z])*$ `
520
- * * 大文字のみ* : ` ^([A-Z])*$ `
521
- * * URL* : ` ^(((http|https|ftp):\/\/)?([[a-zA-Z0-9]\-\.])+(\.)([[a-zA-Z0-9]]){2,4}([[a-zA-Z0-9]\/+=%&_\.~?\-]*))*$ `
522
- * * VISA クレジットカード番号* : ` ^(4[0-9]{12}(?:[0-9]{3})?)*$ `
523
- * * 日付 (DD/MM/YYYY)* : ` ^(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20)?[0-9]{2}$ `
524
- * * 日付 (MM/DD/YYYY)* : ` ^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2}$ `
525
- * * 日付 (YYYY/MM/DD)* : ` ^(19|20)?[0-9]{2}[- /.](0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])$ `
526
- * * MasterCard クレジットカード番号* : ` ^(5[1-5][0-9]{14})*$ `
527
- * * ハッシュタグ* : 前の文字列を含む (abc123#xyz456) または角括弧内にスペースを含む (#[ foo bar] ) : ` \S*#(?:\[[^\]]+\]|\S+) `
528
- * * @mentions * : ` \B@[a-z0-9_-]+ `
529
-
530
506
## 貢献する
531
507
532
508
* 課題を発行する
You can’t perform that action at this time.
0 commit comments