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 😭)


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:

  1. The Perl Artistic License. See the file COPYRIGHT.AL.
  2. The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
  3. The BSD License. See the file COPYRIGHT.BSD.
  4. 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