SYNOPSIS

    use Regexp::Common qw /URI/;

    while (<>) {
        /$RE{URI}{fax}/       and  print "Contains a fax URI.\n";
    }

DESCRIPTION

Returns a pattern that matches fax URIs, as defined by \s-1RFC\s0 2806. Under \*(C`{-keep}\*(C', the following are returned: The complete \s-1URI\s0. The scheme. The phone number, including any possible add-ons like \s-1ISDN\s0 subaddress, a post dial part, area specifier, service provider, etc. As above (including what's returned by \*(C`{-keep}\*(C'), with the exception that future extensions are not allowed. Without allowing those future extensions, it becomes much easier to check a \s-1URI\s0 if the correct syntax for post dial, service provider, phone context, etc has been used - otherwise the regex could always classify them as a future extension.

REFERENCES

[\s-1RFC\s0 1035]

Mockapetris, P.: \s-1DOMAIN\s0 \s-1NAMES\s0 - \s-1IMPLEMENTATION\s0 \s-1AND\s0 \s-1SPECIFICATION\s0. November 1987.

[\s-1RFC\s0 2396]

Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource Identifiers (\s-1URI\s0): Generic Syntax. August 1998.

[\s-1RFC\s0 2806]

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

RELATED TO Regexp::Common::URI::fax…

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

AUTHOR

Damian Conway ([email protected])

MAINTAINANCE

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

BUGS AND IRRITATIONS

Bound to be plenty.

LICENSE and COPYRIGHT

This software is Copyright (c) 2001 - 2009, Damian Conway and Abigail.

This module is free software, and maybe used under any of the following licenses:

1) The Perl Artistic License. See the file COPYRIGHT.AL. 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2. 3) The BSD Licence. See the file COPYRIGHT.BSD. 4) The MIT Licence. See the file COPYRIGHT.MIT.