HTML::...::Regex(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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 πŸ’–

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