1Regexp::Pattern::Perl::URseelreaCsoen(t3r)ibuted Perl DoRceugmeexnpt:a:tPiaotntern::Perl::Release(3)
2
3
4
6 Regexp::Pattern::Perl::Release - Regexp patterns related to Perl
7 release
8
10 This document describes version 0.007 of Regexp::Pattern::Perl::Release
11 (from Perl distribution Regexp-Pattern-Perl), released on 2022-07-30.
12
14 use Regexp::Pattern; # exports re()
15 my $re = re("Perl::Release::perl_release_archive_filename");
16
18 Regexp::Pattern is a convention for organizing reusable regex patterns.
19
21 • perl_release_archive_filename
22
23 Proper filename of a typical distribution release archive
24 (tarball/zip).
25
26 Examples:
27
28 Example #1.
29
30 "Acme-CPANModulesBundle-Import-PerlAdvent-2000-0.001.tar.gz" =~ re("Perl::Release::perl_release_archive_filename", {-anchor=>1}); # matches
31
32 v prefix before version number allowed.
33
34 "Acme-CPANModulesBundle-Import-PerlAdvent-2000-v0.001.tar.gz" =~ re("Perl::Release::perl_release_archive_filename", {-anchor=>1}); # matches
35
36 No distribution name.
37
38 "0.001.tar.gz" =~ re("Perl::Release::perl_release_archive_filename", {-anchor=>1}); # DOESN'T MATCH
39
40 Unfortunately, numeric namespace name gets mistaken as version
41 number.
42
43 "Acme-CPANModulesBundle-Import-PerlAdvent-2000.tar.gz" =~ re("Perl::Release::perl_release_archive_filename", {-anchor=>1}); # matches
44
45 No version number.
46
47 "Acme-CPANModulesBundle-Import-PerlAdvent.tar.gz" =~ re("Perl::Release::perl_release_archive_filename", {-anchor=>1}); # DOESN'T MATCH
48
50 Please visit the project's homepage at
51 <https://metacpan.org/release/Regexp-Pattern-Perl>.
52
54 Source repository is at
55 <https://github.com/perlancar/perl-Regexp-Pattern-Perl>.
56
58 Other "Regexp::Pattern::Perl::*" modules.
59
60 Regexp::Pattern
61
62 Some utilities related to Regexp::Pattern: App::RegexpPatternUtils,
63 rpgrep from App::rpgrep.
64
66 perlancar <perlancar@cpan.org>
67
69 To contribute, you can send patches by email/via RT, or send pull
70 requests on GitHub.
71
72 Most of the time, you don't need to build the distribution yourself.
73 You can simply modify the code, then test via:
74
75 % prove -l
76
77 If you want to build the distribution (e.g. to try to install it
78 locally on your system), you can install Dist::Zilla,
79 Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two
80 other Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional
81 steps required beyond that are considered a bug and can be reported to
82 me.
83
85 This software is copyright (c) 2022, 2020 by perlancar
86 <perlancar@cpan.org>.
87
88 This is free software; you can redistribute it and/or modify it under
89 the same terms as the Perl 5 programming language system itself.
90
92 Please report any bugs or feature requests on the bugtracker website
93 <https://rt.cpan.org/Public/Dist/Display.html?Name=Regexp-Pattern-Perl>
94
95 When submitting a bug or request, please include a test-file or a patch
96 to an existing test-file that illustrates the bug or desired feature.
97
98
99
100perl v5.36.0 2023-01-20 Regexp::Pattern::Perl::Release(3)