logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Widget::Constraint::Regex - Regex Constraint

Author

       Sebastian Riedel, "sri@oook.de"

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 /

   validate

Name

       HTML::Widget::Constraint::Regex - Regex Constraint

Synopsis

           my $c = $widget->constraint( 'Regex', 'foo' );
           $c->regex(qr/^\w+$/);

See Also