From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Regexp::Pattern::Instagram - Regexp patterns related to Instagram

VERSION

This document describes version 0.001 of Regexp::Pattern::Instagram (from Perl distribution Regexp-Pattern-Instagram), released on 2025-03-27.

SYNOPSIS

Using with Regexp::Pattern:

use Regexp::Pattern; # exports re()
my $re = re("Instagram::username");
# see Regexp::Pattern for more details on how to use with Regexp::Pattern

DESCRIPTION

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

REGEXP PATTERNS

  • username

    Instagram username.

    Maximum 30 characters. Can contain letters, numbers, underscores, and dots. Dots cannot appear at the beginning or end, and cannot appear consecutively.

    Examples:

    Example #1.

    "perlancar" =~ re("Instagram::username"); # matches

    Contains invalid character (space).

    "perl ancar" =~ re("Instagram::username"); # DOESN'T MATCH

    Example #3.

    "perl.ancar" =~ re("Instagram::username"); # matches

    Example #4.

    "per.lan.car" =~ re("Instagram::username"); # matches

    Example #5.

    "__perlancar__" =~ re("Instagram::username"); # matches

    Example #6.

    "a234567890b234567890c234567890" =~ re("Instagram::username"); # matches

    Too long.

    "a234567890b234567890c234567890_" =~ re("Instagram::username"); # DOESN'T MATCH

    Dot cannot appear at the beginning.

    ".perlancar" =~ re("Instagram::username"); # DOESN'T MATCH

    Dot cannot appear at the end.

    "perlancar." =~ re("Instagram::username"); # DOESN'T MATCH

    Dot cannot appear consecutively.

    "perl..ancar" =~ re("Instagram::username"); # DOESN'T MATCH

HOMEPAGE

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

SOURCE

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

SEE ALSO

Regexp::Pattern

Some utilities related to Regexp::Pattern: App::RegexpPatternUtils, rpgrep from App::rpgrep.

AUTHOR

perlancar <perlancar@cpan.org>

CONTRIBUTING

To contribute, you can send patches by email/via RT, or send pull requests on GitHub.

Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:

% prove -l

If you 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, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 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.

BUGS

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

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.