Regexp::Pattern::Example(3pm) User Contributed Perl Documentation Regexp::Pattern::Example(3pm)

Regexp::Pattern::Example - An example Regexp::Pattern::* module

This document describes version 0.2.14 of Regexp::Pattern::Example (from Perl distribution Regexp-Pattern), released on 2020-04-01.

 use Regexp::Pattern; # exports re()
 my $re = re("Example::re1");

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

variant

Choose variant.

Examples:

An example that matches.

 "123-456" =~ re("Example::re3", {variant=>"A"});  # matches

An example that doesn't match.

 "123-456" =~ re("Example::re3", {variant=>"B"});  # doesn't match

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

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

Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Regexp-Pattern>

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.

perlancar <perlancar@cpan.org>

This software is copyright (c) 2020, 2019, 2018, 2016 by 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.

2022-11-29 perl v5.36.0