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
18 Returns a pattern that matches prospero URIs, as defined by RFC 1738.
19 prospero URIs have the form:
20
21 "prospero:" "//" host [ ":" port ] "/" path [ fieldspec ] *
22
23 Under "{-keep}", the following are returned:
24
25 $1 The complete URI.
26
27 $2 The scheme.
28
29 $3 The hostname.
30
31 $4 The port, if given.
32
33 $5 The propero path.
34
35 $6 The field specifications, if given. There can be more field speciā
36 fications; they will all be returned in $6.
37
39 [RFC 1738]
40 Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
41 Locators (URL). December 1994.
42
44 $Log: prospero.pm,v $
45 Revision 2.100 2003/03/25 23:10:44 abigail
46 prospero URIs
47
49 Regexp::Common::URI for other supported URIs.
50
52 Abigail. (regexp-common@abigail.nl).
53
55 Bound to be plenty.
56
58 Copyright (c) 2003, Damian Conway and Abigail. All Rights Reserved.
59 This module is free software. It may be used, redistributed
60 and/or modified under the terms of the Perl Artistic License
61 (see http://www.perl.com/perl/misc/Artistic.html)
62
63
64
65perl v5.8.8 2003-03-23 Regexp::Common::URI::prospero(3)