URI::Find::Schemeless(3pm)

URI::Find::Schemeless3pm

Find schemeless uris in arbitrary text.

Usage

  require URI::Find::Schemeless;
  my $finder = URI::Find::Schemeless->new(\&callback);
  The rest is the same as URI::Find.

Overview

URI::Find finds absolute URIs in plain text with some weak heuristics for finding schemeless URIs. This subclass is for finding things which might be URIs in free text. Things like "www.foo.com" and "lifes.a.bitch.if.you.aint.got.net".

The heuristics are such that it hopefully finds a minimum of false positives, but there's no easy way for it know if "COMMAND.COM" refers to a web site or a file.

top_level_domain_re

  my $tld_re = $self->top_level_domain_re;

Returns the regex for matching top level DNS domains. The regex shouldn't be anchored, it shouldn't do any capturing matches, and it should make itself ignore case.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 7 times.

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

Author

Original code by Roderick Schertler <[email protected]>, adapted by Michael G Schwern <[email protected]>.

Currently maintained by Roderick Schertler <[email protected]>.

From liburi-find-perl 20160806-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.