|
|
Regexp::Common::URI::prospero -- Returns a pattern for prospero URIs.
use Regexp::Common qw /URI/;
while (<>) { /$RE{URI}{prospero}/ and print "Contains a prospero URI.\n"; }
Returns a pattern that matches prospero URIs, as defined by RFC 1738. prospero URIs have the form:
"prospero:" "//" host [ ":" port ] "/" path [ fieldspec ] *
Under {-keep}
, the following are returned:
The complete URI.
The scheme.
The hostname.
The port, if given.
The propero path.
The field specifications, if given. There can be more field specifications;
they will all be returned in $6
.
Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource Locators (URL). December 1994.
$Log: prospero.pm,v $ Revision 2.100 2003/03/25 23:10:44 abigail prospero URIs
the Regexp::Common::URI manpage for other supported URIs.
Abigail. (regexp-common@abigail.nl).
Bound to be plenty.
Copyright (c) 2003, Damian Conway and Abigail. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)