HTML::Widget::Constraint::Regex - Regex Constraint
Contents
Description
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.
License
This library is free software, you can redistribute it and/or modify it under the same terms as Perl
itself.
perl v5.36.0 2023-08-10 HTML::Widget::Constraint::Regex(3pm)
Methods
regex
Arguments: qr/ regex /
validateName
HTML::Widget::Constraint::Regex - Regex Constraint
Synopsis
my $c = $widget->constraint( 'Regex', 'foo' );
$c->regex(qr/^\w+$/);
