1Regexp::Common::URI::teUls(e3r)Contributed Perl DocumentRaetgieoxnp::Common::URI::tel(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

16   $RE{URI}{tel}
17       Returns a pattern that matches tel URIs, as defined by RFC 2806.  Under
18       "{-keep}", the following are returned:
19
20       $1  The complete URI.
21
22       $2  The scheme.
23
24       $3  The phone number, including any possible add-ons like ISDN
25           subaddress, a post dial part, area specifier, service provider,
26           etc.
27
28   $RE{URI}{tel}{nofuture}
29       As above (including what's returned by "{-keep}"), with the exception
30       that future extensions are not allowed. Without allowing those future
31       extensions, it becomes much easier to check a URI if the correct syntax
32       for post dial, service provider, phone context, etc has been used -
33       otherwise the regex could always classify them as a future extension.
34

REFERENCES

36       [RFC 1035]
37           Mockapetris, P.: DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION.
38           November 1987.
39
40       [RFC 2396]
41           Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource
42           Identifiers (URI): Generic Syntax. August 1998.
43
44       [RFC 2806]
45           Vaha-Sipila, A.: URLs for Telephone Calls. April 2000.
46

SEE ALSO

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

AUTHOR

51       Damian Conway (damian@conway.org)
52

MAINTENANCE

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

BUGS AND IRRITATIONS

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