Regexp::Common::URI::file(3pm)

Regexp::Common::URI::file3pm

Usage

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

Overview

$RE{URI}{file}

Returns a pattern that matches file URIs, as defined by RFC 1738. File URIs have the form:

    "file:" "//" [ host | "localhost" ] "/" fpath

Under "{-keep}", the following are returned:

$1

The complete URI.

$2

The scheme.

$3

The part of the URI following "file://".

$4

The hostname.

$5

The path name, including the leading slash.

$6

The path name, without the leading slash.

References

[RFC 1738]

Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource Locators (URL). December 1994.

Maintenance

This package is maintained by Abigail ([email protected]).

Bugs and irritations

Bound to be plenty.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10–11
  9. 12
  10. 13
  11. Arch

Author

Damian Conway ([email protected])

From perl-regexp-common 2024080801-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.