« blib/lib/FormValidator/Lite/Constraint/Email.pm
↑ Summary
blib/lib/FormValidator/Lite/Constraint/URL.pm »
| 1 | package FormValidator::Lite::Constraint::Japanese; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use FormValidator::Lite::Constraint; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | ▶ | rule 'HIRAGANA' => sub { delsp($_) =~ /^\p{InHiragana}+$/ }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 7 | 4 | ▶ | rule 'KATAKANA' => sub { delsp($_) =~ /^\p{InKatakana}+$/ }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | rule 'JTEL' => sub { $_ =~ /^0\d+\-?\d+\-?\d+$/ }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | rule 'JZIP' => sub { $_ =~ /^\d{3}\-\d{4}$/ }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | 1; | |
| 12 | __END__ | ||