Regexp::Assemble 0.28
Sponsored Links
Regexp::Assemble 0.28 Ranking & Summary
File size:
0.080 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
936
Date added:
2007-04-03
Publisher:
David Landgren
Regexp::Assemble 0.28 description
Regexp::Assemble is Perl module to assemble multiple Regular Expressions into a single RE.
SYNOPSIS
use Regexp::Assemble;
my $ra = Regexp::Assemble->new;
$ra->add( ab+c );
$ra->add( ab+- );
$ra->add( awd+ );
$ra->add( ad+ );
print $ra->re; # prints a(?:w?d+|b+[-c])
Regexp::Assemble takes an arbitrary number of regular expressions and assembles them into a single regular expression (or RE) that matches all that the individual REs match.
As a result, instead of having a large list of expressions to loop over, a target string only needs to be tested against one expression. This is interesting when you have several thousand patterns to deal with. Serious effort is made to produce the smallest pattern possible.
It is also possible to track the original patterns, so that you can determine which, among the source patterns that form the assembled pattern, was the one that caused the match to occur.
You should realise that large numbers of alternations are processed in perls regular expression engine in O(n) time, not O(1). If you are still having performance problems, you should look at using a trie. Note that Perls own regular expression engine will implement trie optimisations in perl 5.10 (they are already available in perl 5.9.3 if you want to try them out). Regexp::Assemble will do the right thing when it knows its running on a a tried perl. (At least in some version after this one).
SYNOPSIS
use Regexp::Assemble;
my $ra = Regexp::Assemble->new;
$ra->add( ab+c );
$ra->add( ab+- );
$ra->add( awd+ );
$ra->add( ad+ );
print $ra->re; # prints a(?:w?d+|b+[-c])
Regexp::Assemble takes an arbitrary number of regular expressions and assembles them into a single regular expression (or RE) that matches all that the individual REs match.
As a result, instead of having a large list of expressions to loop over, a target string only needs to be tested against one expression. This is interesting when you have several thousand patterns to deal with. Serious effort is made to produce the smallest pattern possible.
It is also possible to track the original patterns, so that you can determine which, among the source patterns that form the assembled pattern, was the one that caused the match to occur.
You should realise that large numbers of alternations are processed in perls regular expression engine in O(n) time, not O(1). If you are still having performance problems, you should look at using a trie. Note that Perls own regular expression engine will implement trie optimisations in perl 5.10 (they are already available in perl 5.9.3 if you want to try them out). Regexp::Assemble will do the right thing when it knows its running on a a tried perl. (At least in some version after this one).
Regexp::Assemble 0.28 Screenshot
Regexp::Assemble 0.28 Keywords
Regular Expressions
Assemble 0.28
to assemble
Perl module
regular
Perl
expressions
Ra-
single
module
Regexp::Assemble
RegexpAssemble
Regexp::Assemble 0.28
Libraries
Programming
Bookmark Regexp::Assemble 0.28
Regexp::Assemble 0.28 Copyright
WareSeeker periodically updates pricing and software information of Regexp::Assemble 0.28 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Regexp::Assemble 0.28 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
regular expression
ares regular
regular hotmail
regular and irregular verbs
regularly
regular everyday normal guy
what is a regular polygon
perl modules
perl regular expressions
regular solitaire
regular polygon
regular expressions java
bifidus regularis
regulares
regular guys
perlane
regular guy
verb regular
Related Software
Regexp::Parser is a Perl module for parsing regexes. Free Download
RegExplorer project is a regular Expression Explorer. Free Download
B::Assembler is a Perl module created to assemble Perl bytecode. Free Download
regexxer project is a nifty search/replace tool featuring Perl-style regular expressions. Free Download
Regexx is a complete regular expressions C++ solution. Free Download
Regexp::Log::BlueCoat is a regexp builder to parse BlueCoat log files. Free Download
Regexp::MatchContext is Perl module to replace (and improve) $MATCH, $PREMATCH, and $POSTMATCH Free Download
Sub::Regex is a Perl module to create synonymous subroutines. Free Download
Latest Software
Popular Software
Favourite Software