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

Regexp::Common::URI::telnet3pm

Usage

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

Overview

$RE{URI}{telnet}

Returns a pattern that matches telnet URIs, as defined by RFC 1738. Telnet URIs have the form:

    "telnet:" "//" [ user [ ":" password ] "@" ] host [ ":" port ] [ "/" ]

Under "{-keep}", the following are returned:

$1

The complete URI.

$2

The scheme.

$3

The username:password combo, or just the username if there is no password.

$4

The username, if given.

$5

The password, if given.

$6

The host:port combo, or just the host if there's no port.

$7

The host.

$8

The port, if given.

$9

The trailing slash, if any.

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.