Вячеслав Тихановский > Input-Validator > Input::Validator::Constraint::Regexp

Download:
Input-Validator-0.001005.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Input::Validator::Constraint::Regexp - Regexp constraint

SYNOPSIS ^

    $validator->field('number')->regexp(qr/^\d+$/);

DESCRIPTION ^

Checks if the value mathes provided regular expression. Don't forget ^ and $ symbols if you want to check the whole value.

METHODS ^

is_valid

Validates the constraint.

SEE ALSO ^

Input::Validator, Input::Constraint

syntax highlighting: