Search::Tools::RegExp::Keyword 0.06 review
DownloadSearch::Tools::RegExp::Keyword is a Perl module to access regular expressions for a keyword. SYNOPSIS my $regexp = Search::Too
|
|
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