{
    "content": [
        {
            "type": "text",
            "text": "# Regexp::Common::URI::gopher (perldoc)\n\n## NAME\n\nRegexp::Common::URI::gopher -- Returns a pattern for gopher URIs.\n\n## SYNOPSIS\n\nuse Regexp::Common qw /URI/;\nwhile (<>) {\n/$RE{URI}{gopher}/       and  print \"Contains a gopher URI.\\n\";\n}\n\n## DESCRIPTION\n\n$RE{URI}{gopher}{-notab}\nGopher URIs are poorly defined. Originally, RFC 1738 defined gopher URIs, but they were later\nredefined in an internet draft. One that was expired in June 1997.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **AUTHOR**\n- **MAINTENANCE**\n- **BUGS AND IRRITATIONS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Regexp::Common::URI::gopher",
        "section": "",
        "mode": "perldoc",
        "summary": "Regexp::Common::URI::gopher -- Returns a pattern for gopher URIs.",
        "synopsis": "use Regexp::Common qw /URI/;\nwhile (<>) {\n/$RE{URI}{gopher}/       and  print \"Contains a gopher URI.\\n\";\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 57,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MAINTENANCE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS AND IRRITATIONS",
                "lines": 12,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Regexp::Common::URI::gopher -- Returns a pattern for gopher URIs.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Regexp::Common qw /URI/;\n\nwhile (<>) {\n/$RE{URI}{gopher}/       and  print \"Contains a gopher URI.\\n\";\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "$RE{URI}{gopher}{-notab}\nGopher URIs are poorly defined. Originally, RFC 1738 defined gopher URIs, but they were later\nredefined in an internet draft. One that was expired in June 1997.\n\nThe internet draft for gopher URIs defines them as follows:\n\n\"gopher:\" \"//\" host [ \":\" port ] \"/\" gopher-type selector\n[ \"%09\" search [ \"%09\" gopherplusstring ]]\n\nUnfortunally, a *selector* is defined in such a way that characters may be escaped using the URI\nescape mechanism. This includes tabs, which escaped are %09. Hence, the syntax cannot\ndistinguish between a URI that has both a *selector* and a *search* part, and an URI where the\n*selector* includes an escaped tab. (The text of the draft forbids tabs to be present in the\n*selector* though).\n\n$RE{URI}{gopher} follows the defined syntax. To disallow escaped tabs in the *selector* and\n*search* parts, use $RE{URI}{gopher}{-notab}.\n\nThere are other differences between the text and the given syntax. According to the text,\nselector strings cannot have tabs, linefeeds or carriage returns in them. The text also allows\nthe entire *gopher-path*, (the part after the slash following the hostport) to be empty; if this\nis empty the slash may be omitted as well. However, this isn't reflected in the syntax.\n\nUnder \"{-keep}\", the following are returned:\n\n$1  The entire URI.\n\n$2  The scheme.\n\n$3  The host (name or address).\n\n$4  The port (if any).\n\n$5  The \"gopher-path\", the part after the / following the host and port.\n\n$6  The gopher-type.\n\n$7  The selector. (When no \"{-notab}\" is used, this includes the search and gopherplusstring,\nincluding the separating escaped tabs).\n\n$8  The search, if given. (Only when \"{-notab}\" is given).\n\n$9  The gopherplusstring, if given. (Only when \"{-notab}\" is given).\n\nhead1 REFERENCES\n\n[RFC 1738]\nBerners-Lee, Tim, Masinter, L., McCahill, M.: *Uniform Resource Locators (URL)*. December\n1994.\n\n[RFC 1808]\nFielding, R.: *Relative Uniform Resource Locators (URL)*. June 1995.\n\n[GOPHER URL]\nKrishnan, Murali R., Casey, James: \"A Gopher URL Format\". Expired Internet draft\n*draft-murali-url-gopher*. December 1996.\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": []
            }
        }
    }
}