1Regexp::Common::URI::neUwsse(r3)Contributed Perl DocumenRteagteixopn::Common::URI::news(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

16       $RE{URI}{news}
17
18       Returns a pattern that matches news URIs, as defined by RFC 1738.  News
19       URIs have the form:
20
21           "news:" ( "*" ⎪ group ⎪ article "@" host )
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 "news://".
30
31       $RE{URI}{NNTP}
32
33       Returns a pattern that matches NNTP URIs, as defined by RFC 1738.  NNTP
34       URIs have the form:
35
36           "nntp://" host [ ":" port ] "/" group [ "/" digits ]
37
38       Under "{-keep}", the following are returned:
39
40       $1  The complete URI.
41
42       $2  The scheme.
43
44       $3  The part of the URI following "nntp://".
45
46       $4  The host and port, separated by a colon. If no port was given, just
47           the host.
48
49       $5  The host.
50
51       $6  The port, if given.
52
53       $7  The group.
54
55       $8  The digits, if given.
56

REFERENCES

58       [RFC 1738]
59           Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource
60           Locators (URL). December 1994.
61

HISTORY

63        $Log: news.pm,v $
64        Revision 2.100  2003/02/11 14:11:29  abigail
65        NNTP and news URIs
66

SEE ALSO

68       Regexp::Common::URI for other supported URIs.
69

AUTHOR

71       Damian Conway (damian@conway.org)
72

MAINTAINANCE

74       This package is maintained by Abigail (regexp-common@abigail.nl).
75

BUGS AND IRRITATIONS

77       Bound to be plenty.
78
80            Copyright (c) 2001 - 2003, Damian Conway. All Rights Reserved.
81              This module is free software. It may be used, redistributed
82             and/or modified under the terms of the Perl Artistic License
83                   (see http://www.perl.com/perl/misc/Artistic.html)
84
85
86
87perl v5.8.8                       2003-03-23      Regexp::Common::URI::news(3)
Impressum