Regexp:...RI::news(3)
π Regexp::Common::URI::news(3) π
okay bestie, welcome to the User Contributed Perl Documentation page for Regexp::Common::URI::news β the URI regex page with main-character energy. π
β¨
πΈ NAME πΈ
Regexp::Common::URI::news β βReturns a pattern for file URIs.β (yes, the NAME section says file URIs, bestie; Iβm not gonna fix it, Iβm just reporting the vibe ππ)
β¨ SYNOPSIS β¨
Bestie, you can loop over input and catch news URIs like this:
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{news}/ and print "Contains a news URI.\n";
}
π DESCRIPTION π
π¦ $RE{URI}{news} π¦
Returns a pattern that matches news URIs, as defined by RFC 1738. News URIs have the form:
"news:" ( "*" | group | article "@" host )
Under {-keep}, the following are returned:
$1β The complete URI.$2β The scheme.$3β The part of the URI following"news://".
π§ $RE{URI}{NNTP} π§
Returns a pattern that matches NNTP URIs, as defined by RFC 1738. NNTP URIs have the form:
"nntp://" host [ ":" port ] "/" group [ "/" digits ]
Under {-keep}, the following are returned:
$1β The complete URI.$2β The scheme.$3β The part of the URI following"nntp://".$4β The host and port, separated by a colon. If no port was given, just the host.$5β The host.$6β The port, if given.$7β The group.$8β The digits, if given.
π REFERENCES π
π [RFC 1738]
Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource Locators (URL). December 1994.
π SEE ALSO π
Regexp::Common::URI for other supported URIs. Go check the rest of the URI fam, iykyk. π
π AUTHOR π
Damian Conway (damian@conway.org) β iconic behavior, honestly. π
π οΈ MAINTENANCE π οΈ
This package is maintained by Abigail (regexp-common@abigail.freedom.nl). π«Ά
π BUGS AND IRRITATIONS π
Bound to be plenty. (thatβs literally the whole section, bestie π)
π LICENSE and COPYRIGHT π
This software is Copyright (c) 2001 - 2024, Damian Conway and Abigail.
This module is free software, and maybe used under any of the following licenses:
- The Perl Artistic License. See the file
COPYRIGHT.AL. - The Perl Artistic License 2.0. See the file
COPYRIGHT.AL2. - The BSD License. See the file
COPYRIGHT.BSD. - The MIT License. See the file
COPYRIGHT.MIT.
mwah π this page is from perl v5.42.0, dated 2024-08-09. now go match those URIs, bestie β slay! π¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Regexp-Common 2024080801.0.0-160000.2.2 Β· Artistic-1.0 OR Artistic-2.0 OR BSD-3-Clause OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms