1Regexp::Common::URI::faUxs(e3r)Contributed Perl DocumentRaetgieoxnp::Common::URI::fax(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

REFERENCES

37       [RFC 1035]
38           Mockapetris, P.: DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION.
39           November 1987.
40

[RFC 2396]

42Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource Identifiers

(URI): Generic Syntax. August 1998.

44

[RFC 2806]

46Vaha-Sipila, A.: URLs for Telephone Calls. April 2000.
47

HISTORY

49        $Log: fax.pm,v $
50        Revision 2.100  2003/02/10 21:06:38  abigail
51        fax URI
52

SEE ALSO

54       Regexp::Common::URI for other supported URIs.
55

AUTHOR

57       Damian Conway (damian@conway.org)
58

MAINTAINANCE

60       This package is maintained by Abigail (regexp-common@abigail.nl).
61

BUGS AND IRRITATIONS

63       Bound to be plenty.
64
66            Copyright (c) 2001 - 2003, Damian Conway. All Rights Reserved.
67              This module is free software. It may be used, redistributed
68             and/or modified under the terms of the Perl Artistic License
69                   (see http://www.perl.com/perl/misc/Artistic.html)
70
71
72
73perl v5.8.8                       2003-03-23       Regexp::Common::URI::fax(3)
Impressum