1Regexp::Pattern::Perl::UMsoedrulCeo(n3t)ributed Perl DocRuemgeenxtpa:t:iPoanttern::Perl::Module(3)
2
3
4

NAME

6       Regexp::Pattern::Perl::Module - Regexp patterns related to Perl modules
7

VERSION

9       This document describes version 0.007 of Regexp::Pattern::Perl::Module
10       (from Perl distribution Regexp-Pattern-Perl), released on 2022-07-30.
11

SYNOPSIS

13        use Regexp::Pattern; # exports re()
14        my $re = re("Perl::Module::perl_modname");
15

DESCRIPTION

17       Regexp::Pattern is a convention for organizing reusable regex patterns.
18

REGEXP PATTERNS

20       •   perl_modname
21
22           Perl module name e.g. Foo::Bar.
23
24           Examples:
25
26           Example #1.
27
28            "" =~ re("Perl::Module::perl_modname");  # DOESN'T MATCH
29
30           Example #2.
31
32            "Foo::Bar" =~ re("Perl::Module::perl_modname");  # matches
33
34           Example #3.
35
36            "Foo::0Bar" =~ re("Perl::Module::perl_modname");  # matches
37
38           Example #4.
39
40            "0Foo::Bar" =~ re("Perl::Module::perl_modname");  # DOESN'T MATCH
41
42           Example #5.
43
44            "Foo/Bar" =~ re("Perl::Module::perl_modname");  # DOESN'T MATCH
45
46       •   perl_modname_pm
47
48           Perl module name in Foo/Bar.pm.
49
50           Examples:
51
52           Example #1.
53
54            "" =~ re("Perl::Module::perl_modname_pm");  # DOESN'T MATCH
55
56           Example #2.
57
58            "Foo/Bar.pm" =~ re("Perl::Module::perl_modname_pm");  # matches
59
60           Example #3.
61
62            "Foo/0Bar.pm" =~ re("Perl::Module::perl_modname_pm");  # matches
63
64           Example #4.
65
66            "0Foo/Bar.pm" =~ re("Perl::Module::perl_modname_pm");  # DOESN'T MATCH
67
68           Example #5.
69
70            "Foo/Bar" =~ re("Perl::Module::perl_modname_pm");  # DOESN'T MATCH
71
72           Example #6.
73
74            "Foo::Bar" =~ re("Perl::Module::perl_modname_pm");  # DOESN'T MATCH
75
76       •   perl_modname_with_optional_args
77
78           Examples:
79
80           Example #1.
81
82            "" =~ re("Perl::Module::perl_modname_with_optional_args");  # DOESN'T MATCH
83
84           Example #2.
85
86            "Foo::Bar" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
87
88           Example #3.
89
90            "Foo::0Bar" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
91
92           Example #4.
93
94            "0Foo::Bar" =~ re("Perl::Module::perl_modname_with_optional_args");  # DOESN'T MATCH
95
96           Example #5.
97
98            "Foo/Bar" =~ re("Perl::Module::perl_modname_with_optional_args");  # DOESN'T MATCH
99
100           Example #6.
101
102            "Foo::Bar=" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
103
104           Example #7.
105
106            "Foo::Bar=a" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
107
108           Example #8.
109
110            "Foo::Bar=a,b,c" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
111
112           Example #9.
113
114            "Foo::Bar=a=1" =~ re("Perl::Module::perl_modname_with_optional_args");  # matches
115
116           Example #10.
117
118            "=Foo::Bar" =~ re("Perl::Module::perl_modname_with_optional_args");  # DOESN'T MATCH
119

HOMEPAGE

121       Please visit the project's homepage at
122       <https://metacpan.org/release/Regexp-Pattern-Perl>.
123

SOURCE

125       Source repository is at
126       <https://github.com/perlancar/perl-Regexp-Pattern-Perl>.
127

SEE ALSO

129       Other "Regexp::Pattern::Perl::*" modules.
130
131       Regexp::Pattern
132
133       Some utilities related to Regexp::Pattern: App::RegexpPatternUtils,
134       rpgrep from App::rpgrep.
135

AUTHOR

137       perlancar <perlancar@cpan.org>
138

CONTRIBUTING

140       To contribute, you can send patches by email/via RT, or send pull
141       requests on GitHub.
142
143       Most of the time, you don't need to build the distribution yourself.
144       You can simply modify the code, then test via:
145
146        % prove -l
147
148       If you want to build the distribution (e.g. to try to install it
149       locally on your system), you can install Dist::Zilla,
150       Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two
151       other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional
152       steps required beyond that are considered a bug and can be reported to
153       me.
154
156       This software is copyright (c) 2022, 2020 by perlancar
157       <perlancar@cpan.org>.
158
159       This is free software; you can redistribute it and/or modify it under
160       the same terms as the Perl 5 programming language system itself.
161

BUGS

163       Please report any bugs or feature requests on the bugtracker website
164       <https://rt.cpan.org/Public/Dist/Display.html?Name=Regexp-Pattern-Perl>
165
166       When submitting a bug or request, please include a test-file or a patch
167       to an existing test-file that illustrates the bug or desired feature.
168
169
170
171perl v5.38.0                      2023-07-21  Regexp::Pattern::Perl::Module(3)
Impressum