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 version 2.07
10
12 The following filter would turn "1234-5678" into "****-****".
13
14 type: Regex
15 match: \d
16 replace: *
17
19 Regular expression-based match / replace filter.
20
22 match
23 A regex object or string to be used in the "left-hand side" of a
24 "s///g" regular expression.
25
26 Default Value: qr/./
27
28 replace
29 A string to be used in the "right-hand side" of a "s///g" regular
30 expression. The string will replace every occurrence of "match".
31
32 Default Value: ''
33
34 eval
35 Arguments: $bool
36
37 If true, the regex modifier "/e" is used, so that the contents of the
38 "replace" string are "eval"'d.
39
40 This allows the use of variables such as $1 or any other perl
41 expression.
42
44 Carl Franks, "cfranks@cpan.org"
45
47 This library is free software, you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49
51 Carl Franks <cpan@fireartist.com>
52
54 This software is copyright (c) 2018 by Carl Franks.
55
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58
59
60
61perl v5.36.0 2023-01-20 HTML::FormFu::Filter::Regex(3)