Regexp::EnglishRegexp::English is a Perl module to create regular expressions more verbosely. | |
Download |
Regexp::English Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- chromatic
- Publisher web site:
- http://search.cpan.org/~chromatic/Crypt-CipherSaber-1.00/lib/Crypt/CipherSaber.pm
Regexp::English Tags
Regexp::English Description
Regexp::English is a Perl module to create regular expressions more verbosely. Regexp::English is a Perl module to create regular expressions more verbosely.SYNOPSIS use Regexp::English; my $re = Regexp::English -> start_of_line -> literal('Flippers') -> literal(':') -> optional -> whitespace_char -> end -> remember -> multiple -> digit; while () { if (my $match = $re->match($_)) { print "$matchn"; } }Regexp::English provides an alternate regular expression syntax, one that is slightly more verbose than the standard mechanisms. In addition, it adds a few convenient features, like incremental expression building and bound captures.You can access almost every regular expression available in Regexp::English can through a method, though some are also (or only) available as functions. These methods fall into several categories: characters, quantifiers, groupings, and miscellaneous. The division wouldn't be so rough if the latter had a better name.All methods return the Regexp::English object, so you can chain method calls as in the example above. Though there is a new() method, you can use any character method, or remember(), to create an object.To perform a match, use the match() method. Alternately, if you use a Regexp::English object as if it were a compiled regular expression, the module will automatically compile it behind the scenes. Requirements: · Perl
Regexp::English Related Software