Coder Social home page Coder Social logo

regexp-ip's Introduction

NAME

Regexp::IP - Regular expression for IPv4 and IPv6 addresses

SYNOPSIS

  use Regexp::IP qw($IPv4_re $IPv6_re);

  $address =~ /^$IPv4_re$/ and print "IPv4 address\n";
  $address =~ /^$IPv6_re$/ and print "IPv6 address\n";

DESCRIPTION

This module exports the $IPv6_re regular expression that matches any
valid IPv6 address as described in "RFC 2373 - 2.2 Text Representation
of Addresses". Any string not compliant with such RFC will be rejected.

To match full strings use "/^$IPv6_re$/".

Additionally, this module also exports the $IPv4_re regular expression.

COPYRIGHT AND LICENSE

Copyright (C) 2009, 2010 by Salvador Fandi�o <[email protected]>

Copyright (C) 2014 by Wesley Schwengle <[email protected]>

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.18.0 or, at
your option, any later version of Perl 5 you may have available.

Additionally, you are allowed to use the regexp generated by the module
in any way you want, without any restriction. For instance, you are
allowed to copy it verbating in your program.

SEE ALSO

Regexp::IPv6

regexp-ip's People

Contributors

waterkip avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.