Release of version 2010010201 of Regexp::Common


The main reason for version 2.122 is a change in the license. You now have the option to use this software under either the original Artistic License, the Artistic License 2.0, the MIT license, or the BSD license.

WARNINGS

INCOMPATIBLE CHANGE in version 2.119: The $N settings for the -keep option of US postal codes ($RE {zip} {US} {-keep}) have been changed. See the Regexp::Common::zip for details.

       INCOMPATIBLE CHANGE in version 2.113:
       Regexp::Common used to set $; to '='. This no longer happens,
       because setting $; breaks Filter::Simple. This means that regexps
       of the form $RE{foo}{"-flag=value"} no longer work!  They need
       to be written as $RE{foo}{"-flag$;value"} or as
       $RE{foo}{-flag => "value"}.

       When defining patterns using the pattern function, a = still
       needs to be used to separate the flag from its default value.
       This has not been changed.

       We are very sorry for the inconvenience.

NAME

Regexp::Common - Provide commonly requested regular expressions

SYNOPSIS

use Regexp::Common;

     while (<>) {
            /$RE{num}{real}/                
                                and print q{a number\n};
            /$RE{quoted}/                   
                                and print q{a ['"`] quoted string\n};
            /$RE{delimited}{-delim=>'/'}/   
                                and print q{a /.../ sequence\n};
            /$RE{balanced}{-parens=>'()'}/  
                                and print q{balanced parentheses\n};
            /$RE{profanity}/                
                                and print q{a #*@%-ing word\n};
     }

DESCRIPTION

By default, this module exports a single hash (`%RE') that stores or generates commonly needed regular expressions. Patterns currently provided include:

Future releases of the module will also provide patterns for the

following

INSTALLATION

It's all pure Perl, so just put the .pm files in their appropriate local Perl subdirectory.

Alternatively, use the common approach:

AUTHORS

Damian Conway (damian@cs.monash.edu.au) and Abigail (regexp-common@abigail.be)

MAINTAINER

Abigail (regexp-common@abigail.be)

COPYRIGHT and LICENSE

This software is Copyright (c) 2001 - 2009, Damian Conway and Abigail.

This module is free software, and maybe used under any of the following

licences
  1. The Perl Artistic License. See the file COPYRIGHT.AL.
  2. The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
  3. The BSD Licence. See the file COPYRIGHT.BSD.
  4. The MIT Licence. See the file COPYRIGHT.MIT.

AVAILABILITY

Regexp::Common has been uploaded to the CPAN and is also available from:

http://github.com/Abigail/Regexp--Common.git