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.
regex
Arguments: qr/ regex /
validate
Sebastian Riedel, "sri AT oook DOT de"
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.