|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.
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)
Regexp::List(3pm)User Contributed Perl DocumentatioRegexp::List(3pm) NAME Regexp::List - builds regular expressions out of a list of words SYNOPSIS use Regexp::List; my $l = Regexp::List->new; my $re = $l->list2re(qw/foobar fooxar foozap fooza/); # $re is now qr/foo(?:[bx]ar|zap?)/ ABSTRACT This module offers "list2re" method that turn more»
Regexp::OptimizerUser)Contributed Perl DocumenRegexp::Optimizer(3pm) NAME Regexp::Optimizer - optimizes regular expressions SYNOPSIS use Regexp::Optimizer; my $o = Regexp::Optimizer->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 ex more»
libregexp-optimizer-perl (0.15-3) unstable; urgency=medium [ Ansgar Burchardt ] * debian/contro more»
# # $Id: Changes,v 0.15 2004/12/05 16:07:34 dankogai Exp dankogai $ # $Revision: 0.15 $ $Date: 2004 more»
Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=13 more»