HTML::FormFu::Filter::Regex(3pm)

HTML::FormFu::Filter::Regex3pm

Regexp-based match/replace filter

Usage

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

    type: Regex
    match: \d
    replace: *

Version

version 2.07

Overview

Regular expression-based match / replace filter.

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–12
  6. 13

Author

Carl Franks, "[email protected]"

License

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

Author

Carl Franks <[email protected]>

From libhtml-formfu-perl 2.07000-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.