Input::Validator::Constraint::Regexp - Regexp constraint
$validator->field('number')->regexp(qr/^\d+$/);
Checks if the value mathes provided regular expression. Don't forget ^ and $ symbols if you want to check the whole value.
^
$
is_valid
Validates the constraint.
Input::Validator, Input::Constraint
To install Input::Validator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Input::Validator
CPAN shell
perl -MCPAN -e shell install Input::Validator
For more information on module installation, please visit the detailed CPAN module installation guide.