Regexp:...rl::Dist(3)
π Regexp::Pattern::Perl::Dist(3) β the manual page, but make it make sense β¨
okay so bestie, this is the manual page for Regexp::Pattern::Perl::Dist(3), and honestly? it's short, it's sweet, and it does exactly one thing. let's get into it π
πΈ NAME πΈ
Regexp::Pattern::Perl::Dist β regexp patterns related to Perl distribution. that's it. that's the whole vibe. it's giving "one job, done well" π
β VERSION β
this doc describes version 0.007 of Regexp::Pattern::Perl::Dist (from the Perl distribution Regexp-Pattern-Perl), released on 2022-07-30. lock it in ποΈ
π¦ SYNOPSIS π¦
the whole flex is like three lines, no cap:
use Regexp::Pattern; # exports re()
my $re = re("Perl::Dist::perl_distname");
that's the entire flow. use it, call re() on the pattern name, get your regex. slay β¨
π DESCRIPTION π
Regexp::Pattern is a convention for organizing reusable regex patterns. that's the concept, that's the whole point β reusable patterns, organized, not copy-pasted into seventeen different files like some kind of chaos gremlin π
π₯ REGEXP PATTERNS π₯
perl_distname
this is the one pattern in the house, and here's the receipts π
Examples:
Example #1.
"" =~ re("Perl::Dist::perl_distname"); # DOESN'T MATCH
Example #2.
"Foo-Bar" =~ re("Perl::Dist::perl_distname"); # matches
Example #3.
"Foo-0Bar" =~ re("Perl::Dist::perl_distname"); # matches
Example #4.
"0Foo-Bar" =~ re("Perl::Dist::perl_distname"); # DOESN'T MATCH
Example #5.
"Foo::Bar" =~ re("Perl::Dist::perl_distname"); # DOESN'T MATCH
so like, dash yes, colon no, leading digit no, empty string absolutely not. the vibe check is thorough π
π HOMEPAGE π
please visit the project's homepage at <https://metacpan.org/release/Regexp-Pattern-Perl>. go say hi π«Ά
π§ SOURCE π§
source repository is at <https://github.com/perlancar/perl-Regexp-Pattern-Perl>. the code lives there, bestie π
π SEE ALSO π
- other
"Regexp::Pattern::Perl::*"modules. the whole family, iconic π Regexp::Pattern- some utilities related to
Regexp::Pattern:App::RegexpPatternUtils,rpgrepfromApp::rpgrep.
π AUTHOR π
perlancar <perlancar@cpan.org> β main character energy fr fr π
πΈ CONTRIBUTING πΈ
to contribute, you can send patches by email/via RT, or send pull requests on GitHub. all routes welcome π«Ά
most of the time, you don't need to build the distribution yourself. you can simply modify the code, then test via:
% prove -l
literally just that. prove -l, you're golden β¨
if you do want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla plugin and/or Pod::Weaver::Plugin. any additional steps required beyond that are considered a bug and can be reported to me. so if it needs extra steps? that's a bug, not a you problem π₯
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2022, 2020 by perlancar <perlancar@cpan.org>.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in, go off π
π BUGS π
please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Regexp-Pattern-Perl>. they will see it π
when submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. receipts are required, bestie β no vague "it's broken" energy π
and that's the whole page!! π cute lil sign-off: this was perl v5.32.1, dated 2022-09-26, rendering Regexp:...rl::Dist(3) β you're officially caught up, go be iconic with your regexes π¦π
π¦ where this page comes from
- epel 9: perl-Regexp-Pattern-Perl 0.007-1.el9 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms