Regexp
Regexp::Genex - get the strings a regex will match, with a regex. SYNPOSIS # first try: $ perl -MRegexp::Genex=:all -le print for strings(qr/a(b|c)d{2,3}e*/) $ perl -x `pmpath Regexp::Genex` #!/usr/bin/perl -l use Regexp::Genex qw(:all); $regex = shift || "a(b|c)d{2,4}?"; print...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (96): Regexp::Genex Download |
Regexp::Common::comment is a Perl module that provide regexes for comments. SYNOPSIS use Regexp::Common qw /comment/; while (<>) { /$RE{comment}{C}/ and print "Contains a C commentn"; /$RE{comment}{C++}/ and print "Contains a C++ commentn"; /$RE{comment}{PHP}/ and print "Contains a PHP...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (103): Regexp::Common::comment Download |
Regexp::MatchContext is Perl module to replace (and improve) $MATCH, $PREMATCH, and $POSTMATCH SYNOPSIS use Regexp::MatchContext -vars; $str = m/(?p) d+ /; print "Before: $PREMATCHn"; print "Matched: $MATCHn"; print "After: $POSTMATCHn"; $MATCH = 2 * $MATCH; # substitute into original...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (94): Regexp::MatchContext Download |
Regexp::Common::net is a Perl module that provide regexes for IPv4 addresses. SYNOPSIS use Regexp::Common qw /net/; while (<>) { /$RE{net}{IPv4}/ and print "Dotted decimal IP address"; /$RE{net}{IPv4}{hex}/ and print "Dotted hexadecimal IP address"; /$RE{net}{IPv4}{oct}{-sep => :}/ and...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (115): Regexp::Common::net Download |
Regexp::Extended is a Perl wrapper that extends the re module with new features. SYNOPSIS use Regexp::Extended qw(:all); # (?<>...): named parameters $date =~ /(? d+)-(? d+)-(? d+)/; if ("2002-10-30" =~ /$date/) { print "The date is : $::year->[0]-$::month->[0]-$::day->[0]n"; }...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (93): Regexp::Extended Download |
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...
Platforms: *nix
License: Freeware | Size: 81.92 KB | Download (94): Regexp::Assemble Download |
Regexp::Common::time Perl module contains date and time regexps. SYNOPSIS use Regexp::Common qw(time); # Piecemeal, Time::Format-like patterns $RE{time}{tf}{-pat => pattern} # Piecemeal, strftime-like patterns $RE{time}{strftime}{-pat => pattern} # Match ISO8601-style date/time...
Platforms: *nix
License: Freeware | Size: 35.84 KB | Download (94): Regexp::Common::time Download |
Parse::RandGen::Regexp is a Perl module for regular expression Condition element. Regexp is a Condition element that matches the given compiled regular expression. For picking random data, the regular expression is parsed into its component Subrules, Literals, CharClasses, etc.... Therefore,...
Platforms: *nix
License: Freeware | Size: 25.6 KB | Download (90): Parse::RandGen::Regexp Download |
Regexp::Parser::Handlers is a Perl module with handlers for Perl 5 regexes. This module holds the init() method for the Regexp::Parser class, which installs all the handlers for standard Perl 5 regexes. This documentation contains a sub-classing tutorial. SUB-CLASSING I will present two...
Platforms: *nix
License: Freeware | Size: 40.96 KB | Download (86): Regexp::Parser::Handlers Download |
Regexp::Parser is a Perl module for parsing regexes. This module parses regular expressions (regexes). Its default "grammar" is Perl 5.8.4s regex set. Grammar is quoted because the module does not so much define a grammar as let each matched node state what it expects to match next, but there...
Platforms: *nix
License: Freeware | Size: 40.96 KB | Download (94): Regexp::Parser Download |
Visual REGEXP project can easily design and debug regular expressions by providing a graphical visualization of the expression and its matches on a sample of your choice. Limitations:.
Platforms: *nix
License: Freeware | Size: 25.6 KB | Download (119): Visual REGEXP Download |
Search::Tools::RegExp is a Perl module to build regular expressions from search queries. SYNOPSIS my $regexp = Search::Tools::RegExp->new(); my $kw = $regexp->build(the quick brown fox); for my $w ($kw->keywords) { my $r = $kw->re( $w ); # the word itself printf("the word is %sn",...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (102): Search::Tools::RegExp Download |
Search::Tools::RegExp::Keywords is a Perl module to access regular expressions for keywords. SYNOPSIS my $regexp = Search::Tools::RegExp->new(); my $kw = $regexp->build(the quick brown fox); for my $w ($kw->keywords) { my $r = $kw->re( $w ); } Search::Tools::RegExp::Keywords provides...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (98): Search::Tools::RegExp::Keywords Download |
Regexp::Log is a Perl base class for log files regexp builders. SYNOPSIS my $foo = Regexp::Log::Foo->new( format => custom %a %b %c/%d, capture => [qw( host code )], ); # the format() and capture() methods can be used to set or get $foo->format(custom %g %e %a %w/%s %c);...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (93): Regexp::Log Download |
Regexp::Log::BlueCoat is a regexp builder to parse BlueCoat log files. SYNOPSIS my $blue = Regexp::Log::BlueCoat->new( format => %g %e %a %w/%s %b %m %i %u %H/%d %c, capture => [qw( host code )], ); # the format() and capture() methods can be used to set or get $blue->format(%g %e %a...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (101): Regexp::Log::BlueCoat Download |
Regexp::Ignore is a Perl module that let us ignore unwanted parts, while parsing text. WARNING This is an alpha code. Really. It was written in the end of 2001. It is not yet checked much. The only reason I submit it to CPAN that early is to get feedback about the idea, and hopefully to get...
Platforms: *nix
License: Freeware | Size: 71.68 KB | Download (87): Regexp::Ignore Download |
Regexp::MultiLanguage::BaseDialect takes care of most of the work of writing a dialect for Regexp::MultiLanguage. SYNOPSIS Handles interfacing with the Parse::RecDescent grammar to simplify the code that must be written for a dialect of Regexp::MultiLanguage. Dialect writers only need write...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (98): Regexp::MultiLanguage::BaseDialect Download |
ShiftJIS::Regexp contains regular expressions in Shift-JIS. SYNOPSIS use ShiftJIS::Regexp qw(:all); match($string, p{Hiragana}{2}p{Digit}{2}); match($string, pH{2}pD{2}); # these two are equivalent: This module provides some functions to use regular expressions in Shift-JIS on the...
Platforms: *nix
License: Freeware | Size: 35.84 KB | Download (99): ShiftJIS::Regexp Download |
Regexp::Wildcards is a Perl module that converts wildcard expressions to Perl regular expressions. SYNOPSIS use Regexp::Wildcards qw/wc2re/; my $re; $re = wc2re a{b?,c}* => unix; # Do it Unix style. $re = wc2re a?,b* => win32; # Do it Windows style. $re = wc2re *{x,y}? => jokers; #...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (87): Regexp::Wildcards Download |
Regexp testing tool allows to apply group of regexps to huge arrays of data (millions or so) in order to investigate search or search/replacement possibilities of regexp group. Features: * Works fast on huge arrays of data (millions or so) * Allows to apply multiple regexp group and remember...
Platforms: Mac
License: Freeware | Size: 2.64 MB | Download (37): Regexp Testing Tool Download |