Regexp::Common::URI::news(3pm)

Regexp::Common::URI::news3pm

Usage

    use Regexp::Common qw /URI/;
    while (<>) {
        /$RE{URI}{news}/       and  print "Contains a news URI.\n";
    }

Overview

$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.

Maintenance

This package is maintained by Abigail ([email protected]).

Bugs and irritations

Bound to be plenty.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10–11
  9. 12
  10. 13
  11. Arch

Author

Damian Conway ([email protected])

From perl-regexp-common 2024080801-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.