1HTML::FormFu::ConstrainUts:e:rReCgoenxt(r3i)buted Perl DHoTcMuLm:e:nFtoartmiFoun::Constraint::Regex(3)
2
3
4

NAME

6       HTML::FormFu::Constraint::Regex - Regex Constraint
7

VERSION

9       version 2.07
10

DESCRIPTION

12       Regular expression-based constraint.
13

METHODS

15   regex
16       Arguments: $regex. In a config file, enclose the regex in a string,
17       like this: "regex: '^[-_+=!\w\d]*\z'".
18
19       Arguments: $string
20
21   common
22       Arguments: \@parts
23
24       Used to build a Regexp::Common regex.
25
26       The following definition is equivalent to $RE{URI}{HTTP}{-scheme =>
27       'https?'}
28
29           type: Regex
30           common:
31             - URI
32             - HTTP
33             - { '-scheme': 'https?' }
34
35       =-head2 anchored
36
37       Arguments: bool
38
39       If true, uses "^" and "\z" to anchor the "regex" or "common" to the
40       start and end of the submitted value.
41

SEE ALSO

43       Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
44
45       HTML::FormFu
46

AUTHOR

48       Carl Franks "cfranks@cpan.org"
49
50       Based on the original source code of HTML::Widget::Constraint::Regex,
51       by Sebastian Riedel, "sri@oook.de".
52

LICENSE

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

AUTHOR

58       Carl Franks <cpan@fireartist.com>
59
61       This software is copyright (c) 2018 by Carl Franks.
62
63       This is free software; you can redistribute it and/or modify it under
64       the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.36.0                      2022-07-22HTML::FormFu::Constraint::Regex(3)
Impressum