1Regexp::Common::URI::fiUlsee(r3)Contributed Perl DocumenRteagteixopn::Common::URI::file(3)
2
3
4

NAME

6       Regexp::Common::URI::file -- Returns a pattern for file URIs.
7

SYNOPSIS

9           use Regexp::Common qw /URI/;
10
11           while (<>) {
12               /$RE{URI}{file}/       and  print "Contains a file URI.\n";
13           }
14

DESCRIPTION

16       $RE{URI}{file}
17
18       Returns a pattern that matches file URIs, as defined by RFC 1738.  File
19       URIs have the form:
20
21           "file:" "//" [ host ⎪ "localhost" ] "/" fpath
22
23       Under "{-keep}", the following are returned:
24
25       $1  The complete URI.
26
27       $2  The scheme.
28
29       $3  The part of the URI following "file://".
30
31       $4  The hostname.
32
33       $5  The path name, including the leading slash.
34
35       $6  The path name, without the leading slash.
36

REFERENCES

38       [RFC 1738]
39           Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
40           Locators (URL). December 1994.
41

HISTORY

43        $Log: file.pm,v $
44        Revision 2.100  2003/02/10 21:06:39  abigail
45        file URI
46

SEE ALSO

48       Regexp::Common::URI for other supported URIs.
49

AUTHOR

51       Damian Conway (damian@conway.org)
52

MAINTAINANCE

54       This package is maintained by Abigail (regexp-common@abigail.nl).
55

BUGS AND IRRITATIONS

57       Bound to be plenty.
58
60            Copyright (c) 2001 - 2003, Damian Conway. All Rights Reserved.
61              This module is free software. It may be used, redistributed
62             and/or modified under the terms of the Perl Artistic License
63                   (see http://www.perl.com/perl/misc/Artistic.html)
64
65
66
67perl v5.8.8                       2003-03-23      Regexp::Common::URI::file(3)
Impressum