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::FormFu::Filter::Regex - regexp-based match/replace filter

Author

       Carl Franks <cpan@fireartist.com>

Description

       Regular expression-based match / replace filter.

License

       This library is free software, you can redistribute it and/or modify it under the same terms as Perl
       itself.

Methods

match
       A regex object or string to be used in the "left-hand side" of a "s///g" regular expression.

       Default Value: qr/./

   replace
       A string to be used in the "right-hand side" of a "s///g" regular expression. The string will replace
       every occurrence of "match".

       Default Value: ''

   eval
       Arguments: $bool

       If true, the regex modifier "/e" is used, so that the contents of the "replace" string are "eval"'d.

       This allows the use of variables such as $1 or any other perl expression.

Name

       HTML::FormFu::Filter::Regex - regexp-based match/replace filter

Synopsis

       The following filter would turn "1234-5678" into "****-****".

           type: Regex
           match: \d
           replace: *

Version

       version 2.07

See Also