1Regexp::Common::URI::teUlsneert(C3o)ntributed Perl DocumReengteaxtpi:o:nCommon::URI::telnet(3)
2
3
4

NAME

6       Regexp::Common::URI::telnet -- Returns a pattern for telnet URIs.
7

SYNOPSIS

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

DESCRIPTION

16   $RE{URI}{telnet}
17       Returns a pattern that matches telnet URIs, as defined by RFC 1738.
18       Telnet URIs have the form:
19
20           "telnet:" "//" [ user [ ":" password ] "@" ] host [ ":" port ] [ "/" ]
21
22       Under "{-keep}", the following are returned:
23
24       $1  The complete URI.
25
26       $2  The scheme.
27
28       $3  The username:password combo, or just the username if there is no
29           password.
30
31       $4  The username, if given.
32
33       $5  The password, if given.
34
35       $6  The host:port combo, or just the host if there's no port.
36
37       $7  The host.
38
39       $8  The port, if given.
40
41       $9  The trailing slash, if any.
42

REFERENCES

44       [RFC 1738]
45           Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
46           Locators (URL). December 1994.
47

SEE ALSO

49       Regexp::Common::URI for other supported URIs.
50

AUTHOR

52       Damian Conway (damian@conway.org)
53

MAINTENANCE

55       This package is maintained by Abigail (regexp-common@abigail.be).
56

BUGS AND IRRITATIONS

58       Bound to be plenty.
59
61       This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
62
63       This module is free software, and maybe used under any of the following
64       licenses:
65
66        1) The Perl Artistic License.     See the file COPYRIGHT.AL.
67        2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
68        3) The BSD License.               See the file COPYRIGHT.BSD.
69        4) The MIT License.               See the file COPYRIGHT.MIT.
70
71
72
73perl v5.30.0                      2019-07-26    Regexp::Common::URI::telnet(3)
Impressum