Regexp::Common::net::CIDR(3pm)

Regexp::Common::net::CIDR3pm

Usage

    use Regexp::Common ();
    use Regexp::Common::net::CIDR ();
    while (<>) {
        /$RE{net}{CIDR}{IPv4}/ and print "Contains a CIDR.\n";
    }

Overview

Patterns for CIDR blocks. Now only next IPv4 formats are supported:

  xxx.xxx/xx
  xxx.xxx.xxx/xx
  xxx.xxx.xxx.xxx/xx

With {-keep} stores address in $1 and number of bits in $2.

Installation

  perl Makefile.PL
  make
  make install

Caveats

As Regexp::Common doesn't work well with extensions named "Regexp::Common::xxx::yyy" you have to load this extension yourself with "use" or "require".

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–9
  2. 10–11
  3. 12–13

Author

Ruslan U. Zakirov <[email protected]>

From libregexp-common-net-cidr-perl 0.03-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.