Search::Tools::RegExp::Keyword 0.06 review

Download
by rbytes.net on

Search::Tools::RegExp::Keyword is a Perl module to access regular expressions for a keyword. SYNOPSIS my $regexp = Search::Too

License: Perl Artistic License
File size: 0K
Developer: Peter Karman
0 stars award from rbytes.net

Search::Tools::RegExp::Keyword is a Perl module to access regular expressions for a keyword.

SYNOPSIS

my $regexp = Search::Tools::RegExp->new();

my $kw = $regexp->build('the quick brown fox');

for my $w ($kw->keywords)
{
my $re = $kw->re( $w ); # $re is S::T::R::Keyword object

# each of these are regular expressions ... suitable for framing
my $h = $re->html;
my $p = $re->plain;
unless ( $re->word =~ m/^$h$/ )
{
die "something terribly wrong with the html regexp: $h";
}
unless ( $re->word =~ m/^$p$/ )
{
die "something terribly wrong with the plain regexp: $p";
}
}

Search::Tools::RegExp::Keyword provides access to the regular expressions for a query keyword.

Requirements:
Perl

Search::Tools::RegExp::Keyword 0.06 keywords