HTML::Widget::Constraint::Regex - Regex Constraint
my $c = $widget->constraint( 'Regex', 'foo' ); $c->regex(qr/^\w+$/);
Regex Constraint.
The Regex constraint always allows an undef value or an empty string. If you don't want this behaviour, also use the HTML::Widget::Constraint::All.
undef
Arguments: qr/ regex /
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget
CPAN shell
perl -MCPAN -e shell install HTML::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.