Search::Tools::RegExp 0.06 review
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", $r->word);
# is it flagged as a phrase?
print "the word is a phrasen" if $r->phrase;
# each of these are regular expressions
print $r->plain;
print $r->html;
}
Build regular expressions for a string of text.
All text is converted to UTF-8 automatically if it isn't already, via the Search:Tools::Keywords module.
Requirements:
Perl
Search::Tools::RegExp 0.06 keywords