{
    "mode": "perldoc",
    "parameter": "Regexp::Common::URI::tel",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Regexp%3A%3ACommon%3A%3AURI%3A%3Atel/json",
    "generated": "2026-06-13T19:07:26Z",
    "synopsis": "use Regexp::Common qw /URI/;\nwhile (<>) {\n/$RE{URI}{tel}/       and  print \"Contains a telephone URI.\\n\";\n}",
    "sections": {
        "NAME": {
            "content": "Regexp::Common::URI::tel -- Returns a pattern for telephone URIs.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Regexp::Common qw /URI/;\n\nwhile (<>) {\n/$RE{URI}{tel}/       and  print \"Contains a telephone URI.\\n\";\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "$RE{URI}{tel}\nReturns a pattern that matches *tel* URIs, as defined by RFC 2806. Under \"{-keep}\", the\nfollowing are returned:\n\n$1  The complete URI.\n\n$2  The scheme.\n\n$3  The phone number, including any possible add-ons like ISDN subaddress, a post dial part,\narea specifier, service provider, etc.\n\n$RE{URI}{tel}{nofuture}\nAs above (including what's returned by \"{-keep}\"), with the exception that *future extensions*\nare not allowed. Without allowing those *future extensions*, it becomes much easier to check a\nURI if the correct syntax for post dial, service provider, phone context, etc has been used -\notherwise the regex could always classify them as a *future extension*.\n",
            "subsections": []
        },
        "REFERENCES": {
            "content": "[RFC 1035]\nMockapetris, P.: *DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION*. November 1987.\n\n[RFC 2396]\nBerners-Lee, Tim, Fielding, R., and Masinter, L.: *Uniform Resource Identifiers (URI):\nGeneric Syntax*. August 1998.\n\n[RFC 2806]\nVaha-Sipila, A.: *URLs for Telephone Calls*. April 2000.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Regexp::Common::URI for other supported URIs.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Damian Conway (damian@conway.org)\n",
            "subsections": []
        },
        "MAINTENANCE": {
            "content": "This package is maintained by Abigail (*regexp-common@abigail.be*).\n",
            "subsections": []
        },
        "BUGS AND IRRITATIONS": {
            "content": "Bound to be plenty.\n\nLICENSE and COPYRIGHT\nThis software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.\n\nThis module is free software, and maybe used under any of the following licenses:\n\n1) The Perl Artistic License.     See the file COPYRIGHT.AL.\n2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.\n3) The BSD License.               See the file COPYRIGHT.BSD.\n4) The MIT License.               See the file COPYRIGHT.MIT.\n",
            "subsections": []
        }
    },
    "summary": "Regexp::Common::URI::tel -- Returns a pattern for telephone URIs.",
    "flags": [],
    "examples": [],
    "see_also": []
}