HTML::...::Regex(3pm)
π NAME π
HTML::FormFu::Filter::Regex β the regexp-based match/replace filter, bestie β¨
(also known as HTML::...::Regex(3pm), and yeah it's part of the User Contributed Perl Documentation collection, iykyk π«Ά)
πΈ VERSION πΈ
version 2.07 β that's the one, no cap π
β¨ SYNOPSIS β¨
okay so picture this: you've got 1234-5678 and you want it to be ****-****. This filter does exactly that, iconic behaviour honestly:
type: Regex
match: \d
replace: *
π¦ DESCRIPTION π¦
It's a regular expression-based match / replace filter. That's it, that's the whole vibe β you give it a pattern, it swaps out the matches, slay. π₯
π METHODS π
π match
A regex object or string that goes on the "left-hand side" of a s///g regular expression. Basically the "what are we looking for" half of the equation, the main character of the match π«Ά
Default Value: qr/./
π replace
A string that goes on the "right-hand side" of a s///g regular expression. This string will replace every occurrence of match β not just the first one, every single one, periodt π
Default Value: ''
π eval
Arguments: $bool
If it's true, the regex modifier /e gets used, which means the contents of the replace string get eval'd. Lowkey unhinged, highkey useful π
This lets you use variables like $1, or literally any other perl expression you want in there. Go off, fr fr.
π AUTHOR π
Carl Franks, "cfranks@cpan.org"
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. π«Ά
π AUTHOR π
Carl Franks <cpan@fireartist.com> β yes bestie, that's a second AUTHOR section, and yes, we're keeping both π
β 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.
and that's a wrap, angel π this page was brought to you by perl v5.28.1, dated 2019-01-12, and the HTML::...::Regex(3pm) manual β go forth and regex responsibly, ily π
π¦ 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