1Regexp::Common::URI(3)User Contributed Perl DocumentationRegexp::Common::URI(3)
2
3
4

NAME

6       Regexp::Common::URI -- provide patterns for URIs.
7

SYNOPSIS

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

DESCRIPTION

16       Patterns for the following URIs are supported: fax, file, FTP, gopher,
17       HTTP, news, NTTP, pop, prospero, tel, telnet, tv and WAIS.  Each is
18       documented in the Regexp::Common::URI::scheme, manual page, for the
19       appropriate scheme (in lowercase), except for NNTP URIs which are found
20       in Regexp::Common::URI::news.
21
22   $RE{URI}
23       Return a pattern that recognizes any of the supported URIs. With
24       "{-keep}", only the entire URI is returned (in $1).
25

REFERENCES

27       [DRAFT-URI-TV]
28           Zigmond, D. and Vickers, M: Uniform Resource Identifiers for
29           Television Broadcasts. December 2000.
30
31       [DRAFT-URL-FTP]
32           Casey, James: A FTP URL Format. November 1996.
33
34       [RFC 1035]
35           Mockapetris, P.: DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION.
36           November 1987.
37
38       [RFC 1738]
39           Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
40           Locators (URL). December 1994.
41
42       [RFC 2396]
43           Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource
44           Identifiers (URI): Generic Syntax. August 1998.
45
46       [RFC 2616]
47           Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L.,
48           Leach, P. and Berners-Lee, Tim: Hypertext Transfer Protocol --
49           HTTP/1.1.  June 1999.
50
51       [RFC 2806]
52           Vaha-Sipila, A.: URLs for Telephone Calls. April 2000.
53

SEE ALSO

55       Regexp::Common for a general description of how to use this interface.
56

AUTHOR

58       Damian Conway (damian@conway.org)
59

MAINTENANCE

61       This package is maintained by Abigail (regexp-common@abigail.be).
62

BUGS AND IRRITATIONS

64       Bound to be plenty.
65
66       For a start, there are many common regexes missing.  Send them in to
67       regexp-common@abigail.be.
68
70       This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
71
72       This module is free software, and maybe used under any of the following
73       licenses:
74
75        1) The Perl Artistic License.     See the file COPYRIGHT.AL.
76        2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
77        3) The BSD License.               See the file COPYRIGHT.BSD.
78        4) The MIT License.               See the file COPYRIGHT.MIT.
79
80
81
82perl v5.36.0                      2023-01-20            Regexp::Common::URI(3)
Impressum