HTML::...::Regex(3pm)
π HTML::FormFu::Constraint::Regex β the regex constraint, bestie π
manual page for HTML::FormFu::Constraint::Regex (that's the 3pm one, perl module core π
)
β¨ VERSION β¨
version 2.07 β yeah she's on 2.07, iconic
πΈ DESCRIPTION πΈ
It's a constraint. It's based on regular expressions. That's literally the whole vibe: regex-based constraint π¦
π METHODS π
π
regex
Arguments: $regex.
Okay so when you're doing this in a config file, you gotta wrap the regex up in a string, like exactly this:
regex: '^[-_+=!\w\d]*\z'
Arguments: $string
(also takes $string, yes ma'am π«Ά)
π common
Arguments: \@parts
This one is used to build a Regexp::Common regex. So you feed it parts, it constructs the whole thing for you. Very demure, very mindful β¨
And listen β the following definition is equivalent to:
$RE{URI}{HTTP}{-scheme => 'https?'}
which in config land looks like:
type: Regex
common:
- URI
- HTTP
- { '-scheme': 'https?' }
no cap, that's the same thing, just typed out cute π
π anchored π
Arguments: bool
If it's true, it uses "^" and "\z" to anchor the "regex" or "common" to the start and end of the submitted value. So like, the whole value has to match β no sneaky extra stuff slipping through the sides, periodt π
π¦ SEE ALSO π¦
- She is a sub-class of, and inherits methods from, HTML::FormFu::Constraint β so go read that too, bestie, the inheritance is giving family tree π³
- HTML::FormFu β the whole parent situation, main character energy π
π AUTHOR π
Carl Franks "cfranks@cpan.org"
Based on the original source code of HTML::Widget::Constraint::Regex, by Sebastian Riedel, "sri@oook.de". Shoutout to the OGs π
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. So like, go off, remix it, it's yours π«Ά
β AUTHOR (yes, again, she's thorough) β
Carl Franks <cpan@fireartist.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Same energy, same terms, we love a consistent license π
and that's the whole page, bestie π this was documented withperl v5.28.1back on2019-01-12β ancient artifact, still slaying, iykyk β¨π
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· 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