NAME

Regexp::Pattern::YouTube - Regexp patterns related to YouTube

VERSION

This document describes version 0.003 of Regexp::Pattern::YouTube (from Perl distribution Regexp-Pattern-YouTube), released on 2018-09-10.

SYNOPSIS

use Regexp::Pattern; # exports re()
my $re = re("YouTube::video_id");

DESCRIPTION

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

PATTERNS

  • video_id

    Examples:

    "aNAtbYSxzuA" =~ re("YouTube::video_id", {-anchor=>1});  # matches
    
    # Incorrect length
    "aNAtbYSxzuA-" =~ re("YouTube::video_id", {-anchor=>1});  # doesn't match
    
    # Contains invalid character
    "aNAtb+SxzuA" =~ re("YouTube::video_id", {-anchor=>1});  # doesn't match

HOMEPAGE

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

SOURCE

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

BUGS

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

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.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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