1PPIx::Regexp::StructureU:s:eRregCeoxnpt(r3i)buted Perl DPoPcIuxm:e:nRteagteixopn::Structure::Regexp(3)
2
3
4
6 PPIx::Regexp::Structure::Regexp - Represent the top-level regular
7 expression
8
10 use PPIx::Regexp::Dumper;
11 PPIx::Regexp::Dumper->new( 'qr{foo}smx' )
12 ->print();
13
15 "PPIx::Regexp::Structure::Regexp" is a PPIx::Regexp::Structure::Main.
16
17 "PPIx::Regexp::Structure::Regexp" has no descendants.
18
20 This class represents the top-level regular expression. In the example
21 given in the "SYNOPSIS", the "{foo}" will be represented by this class.
22
24 This class provides the following public methods. Methods not
25 documented here are private, and unsupported in the sense that the
26 author reserves the right to change or remove them without notice.
27
28 capture_names
29 foreach my $name ( $re->capture_names() ) {
30 print "Capture name '$name'\n";
31 }
32
33 This method returns the capture names found in the regular expression.
34
35 max_capture_number
36 print "Highest used capture number ",
37 $re->max_capture_number(), "\n";
38
39 This method returns the highest capture number used by the regular
40 expression. If there are no captures, the return will be 0.
41
43 Support is by the author. Please file bug reports at
44 <https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>,
45 <https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in electronic
46 mail to the author.
47
49 Thomas R. Wyant, III wyant at cpan dot org
50
52 Copyright (C) 2009-2021 by Thomas R. Wyant, III
53
54 This program is free software; you can redistribute it and/or modify it
55 under the same terms as Perl 5.10.0. For more details, see the full
56 text of the licenses in the directory LICENSES.
57
58 This program is distributed in the hope that it will be useful, but
59 without any warranty; without even the implied warranty of
60 merchantability or fitness for a particular purpose.
61
62
63
64perl v5.32.1 2021-03-26PPIx::Regexp::Structure::Regexp(3)