DOKK / manpages / debian 11 / libhtml-widget-perl / HTML::Widget::Constraint::Regex.3pm.en
HTML::Widget::Constraint::Regex(3pm) User Contributed Perl Documentation HTML::Widget::Constraint::Regex(3pm)

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.

Arguments: qr/ regex /

Sebastian Riedel, "sri@oook.de"

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

2018-02-25 perl v5.26.1