Search::Tools::RegExp::Keywords - access regular expressions for keywords
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 access to the regular expressions for a query keyword.
A Search::Tools::RegExp::Keywords object is returned by the Search::Tools::RegExp build() method. This class is typically not used in isolation.
In addition, a Search::Tools::RegExp::Keywords object inherits from its parent Search::Tools::RegExp object the common accessors defined in @Search::Tools::Accessors. Since a S::T::R::Keywords object doesn't modify anything, you should consider those common accessors as accessors only, not mutators.
The following methods are available.
Create an object. Used internally.
Returns array of keywords in same order as they appeared in the original query.
Returns a Search::Tools::RegExp::Keyword object corresponding to keyword.
Get the original S::T::Keywords object from which the object is derived.
Peter Karman perl@peknet.com
perl@peknet.com
Based on the HTML::HiLiter regular expression building code, originally by the same author, copyright 2004 by Cray Inc.
Thanks to Atomic Learning www.atomiclearning.com for sponsoring the development of this module.
www.atomiclearning.com
Copyright 2006 by Peter Karman. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
HTML::HiLiter, Search::Tools::RegExp, Search::Tools::RegExp::Keyword
To install Search::Tools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Tools
CPAN shell
perl -MCPAN -e shell install Search::Tools
For more information on module installation, please visit the detailed CPAN module installation guide.