|File Search||Catalog||Content Search|
Regexp::List offers a method which turns a list of words into an optimized regular expression which matches all words therein. The optimized regular expression is much more efficient than a simple-minded '|'-concatenation.
Regexp:Optimizer factors out common suffices/prefices in regular expressions (trie optimization). Currently, the user has to optimize "foo|far" and "foo|goo" into "f(?:oo|ar)" and "[fg]oo" by hand; this module does it automatically.
NAME Regexp::Optimizer - optimizes regular expressions SYNOPSIS use Regexp::Optimizer; my $o = Regexp::List->new; my $re = $o->optimize(qr/foobar|fooxar|foozap/); # $re is now qr/foo(?:[bx]ar|zap)/ ABSTRACT This module does, ahem, attempts to, optimize regular expressions. INSTALLATION To install this module type the following: perl Makefile.PL more»
Three of the Regexp::Optimizer tests fail becase of a bug reported in Perl 5.10 [perl #56444]. because of this one of the test cases in t/03-utf8.t has been commented out for the time being. Should the bug be fixed, these tests will be reinserted. Carlo Segre (July 27, 2008)
If you read this file _as_is_, just ignore the funny characters you see. It is written in the POD format (see perlpod manpage) which is specially designed to be readable as is. The following documentation is written in euc-jp encoding. =head1 NAME perljp - 日本語 Perl ガイド =head1 説明 Perl の世界へようこそ! Perl 5.8.0 より、Unicodeサポートが大幅に強化され、� more»
Regexp::List(3pm)User Contributed Perl DocumentatioRegexp::List(3pm) NAME Regexp::List - b more»
Regexp::OptimizerUser)Contributed Perl DocumenRegexp::Optimizer(3pm) NAME Regexp::Optimize more»
libregexp-optimizer-perl (0.15-2) unstable; urgency=low [ Carlo Segre ] * Injected into Debian more»
# # $Id: Changes,v 0.15 2004/12/05 16:07:34 dankogai Exp dankogai $ # $Revision: 0.15 $ $Date: 2004 more»
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Maintainer: more»