1HTML::FormFu::Filter::RUesgeerx(C3o)ntributed Perl DocumHeTnMtLa:t:iFoonrmFu::Filter::Regex(3)
2
3
4
6 HTML::FormFu::Filter::Regex - regexp-based match/replace filter
7
9 The following filter would turn "1234-5678" into "****-****".
10
11 type: Regex
12 match: \d
13 replace: *
14
16 Regular expression-based match / replace filter.
17
19 match
20 A regex object or string to be used in the "left-hand side" of a
21 "s///g" regular expression.
22
23 Default Value: qr/./
24
25 replace
26 A string to be used in the "right-hand side" of a "s///g" regular
27 expression. The string will replace every occurrence of "match".
28
29 Default Value: ''
30
31 eval
32 Arguments: $bool
33
34 If true, the regex modifier "/e" is used, so that the contents of the
35 "replace" string are "eval"'d.
36
37 This allows the use of variables such as $1 or any other perl
38 expression.
39
41 Carl Franks, "cfranks@cpan.org"
42
44 This library is free software, you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47
48
49perl v5.12.1 2010-05-16 HTML::FormFu::Filter::Regex(3)