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

REFERENCES

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

SEE ALSO

42       Regexp::Common::URI for other supported URIs.
43

AUTHOR

45       Damian Conway (damian@conway.org)
46

MAINTENANCE

48       This package is maintained by Abigail (regexp-common@abigail.be).
49

BUGS AND IRRITATIONS

51       Bound to be plenty.
52
54       This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
55
56       This module is free software, and maybe used under any of the following
57       licenses:
58
59        1) The Perl Artistic License.     See the file COPYRIGHT.AL.
60        2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
61        3) The BSD License.               See the file COPYRIGHT.BSD.
62        4) The MIT License.               See the file COPYRIGHT.MIT.
63
64
65
66perl v5.28.1                      2017-06-02      Regexp::Common::URI::file(3)
Impressum