1Regexp::Common::URI::prUosseprerCoo(n3t)ributed Perl DocRuemgeenxtpa:t:iCoonmmon::URI::prospero(3)
2
3
4
6 Regexp::Common::URI::prospero -- Returns a pattern for prospero URIs.
7
9 use Regexp::Common qw /URI/;
10
11 while (<>) {
12 /$RE{URI}{prospero}/ and print "Contains a prospero URI.\n";
13 }
14
16 $RE{URI}{prospero}
17 Returns a pattern that matches prospero URIs, as defined by RFC 1738.
18 prospero URIs have the form:
19
20 "prospero:" "//" host [ ":" port ] "/" path [ fieldspec ] *
21
22 Under "{-keep}", the following are returned:
23
24 $1 The complete URI.
25
26 $2 The scheme.
27
28 $3 The hostname.
29
30 $4 The port, if given.
31
32 $5 The propero path.
33
34 $6 The field specifications, if given. There can be more field
35 specifications; they will all be returned in $6.
36
38 [RFC 1738]
39 Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
40 Locators (URL). December 1994.
41
43 Regexp::Common::URI for other supported URIs.
44
46 Abigail. (regexp-common@abigail.be).
47
49 Bound to be plenty.
50
52 This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
53
54 This module is free software, and maybe used under any of the following
55 licenses:
56
57 1) The Perl Artistic License. See the file COPYRIGHT.AL.
58 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
59 3) The BSD License. See the file COPYRIGHT.BSD.
60 4) The MIT License. See the file COPYRIGHT.MIT.
61
62
63
64perl v5.38.0 2023-07-21 Regexp::Common::URI::prospero(3)