HTML::...::Regex(3pm)
HTML::Widget::Constraint::Regex π
okay bestie, buckle up, this is the Regex Constraint for HTML::Widget and it's literally just here to vibe-check your input against a regex β¨
NAME π
HTML::Widget::Constraint::Regex β the Regex Constraint, no cap π
SYNOPSIS πΈ
my $c = $widget->constraint( 'Regex', 'foo' );
$c->regex(qr/^\w+$/);
see how easy that was?? two lines and you're iconic π
DESCRIPTION π¦
It's a Regex Constraint. That's the whole gig, and she does it flawlessly π
β οΈ okay so here's the tea: the Regex constraint always allows an undef value or an empty string. Always. Every time. She's not gatekeeping those two. π
If that's not the energy you want β if you're like "no bestie, empty strings are NOT invited to this party" β then you also need to use the HTML::Widget::Constraint::All. Use them together, they're a duo π«Ά
METHODS β¨
regex π―
Arguments: qr/ regex /
That's it. That's the argument. Hand her your compiled regex and she'll know what to do with it π
validate π
ngl the original page just... drops the method name and says nothing else π no arguments listed, no description, nothing. It's giving main character mystery. We respect it anyway π
AUTHOR π
Sebastian Riedel, sri@oook.de β shoutout to the legend who wrote this fr fr π
LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it π
and that's the whole page, bestie!! this was documented with perl v5.36.0 on 2023-08-10 β go forth and validate your little heart out, ily πβ¨π¦
π¦ where this page comes from
- debian trixie: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms