1PPIx::Regexp::Token::QuUasnetrifCioenrt(r3i)buted Perl DPoPcIuxm:e:nRteagteixopn::Token::Quantifier(3)
2
3
4
6 PPIx::Regexp::Token::Quantifier - Represent an atomic quantifier.
7
9 use PPIx::Regexp::Dumper;
10 PPIx::Regexp::Dumper->new( 'qr{\w+}smx' )
11 ->print();
12
14 "PPIx::Regexp::Token::Quantifier" is a PPIx::Regexp::Token.
15
16 "PPIx::Regexp::Token::Quantifier" has no descendants.
17
19 This class represents an atomic quantifier; that is, one of the
20 characters "*", "+", or "?".
21
22 Note that if they occur inside a variable-length look-behind, '?'
23 implies a minimum Perl version of 5.29.9, and '+' and '*' are regarded
24 as parse errors and reblessed into the unknown token.
25
27 This class provides the following public methods. Methods not
28 documented here are private, and unsupported in the sense that the
29 author reserves the right to change or remove them without notice.
30
31 could_be_quantifier
32 PPIx::Regexp::Token::Quantifier->could_be_quantifier( '*' );
33
34 This method returns true if the given string could be a quantifier;
35 that is, if it is '*', '+', or '?'.
36
38 Support is by the author. Please file bug reports at
39 <https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>,
40 <https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in electronic
41 mail to the author.
42
44 Thomas R. Wyant, III wyant at cpan dot org
45
47 Copyright (C) 2009-2022 by Thomas R. Wyant, III
48
49 This program is free software; you can redistribute it and/or modify it
50 under the same terms as Perl 5.10.0. For more details, see the full
51 text of the licenses in the directory LICENSES.
52
53 This program is distributed in the hope that it will be useful, but
54 without any warranty; without even the implied warranty of
55 merchantability or fitness for a particular purpose.
56
57
58
59perl v5.36.0 2022-07-22PPIx::Regexp::Token::Quantifier(3)