NAME

Search::Tools::RegExp - build regular expressions from search queries

SYNOPSIS

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

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

for my $w ($kw->keywords)
{
   my $re = $kw->re( $w );
   
   # each of these are regular expressions
   print $re->plain;
   print $re->html;
}

DESCRIPTION

METHODS

new

isHTML

build

VARIABLES

BUGS and LIMITATIONS

All new() params should be flagged as UTF-8 strings. If you include non-ASCII chars in your regular expressions, etc., you should convert them first to UTF-8 with the standard Encode module.

The special HTML chars < and > can pose problems in regexps against markup, so they are ignored in any regexp params you pass to new().

AUTHOR

Peter Karman 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.

COPYRIGHT

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.

SEE ALSO

HTML::HiLiter, Search::Tools, Search::Tools::RegExp::Keywords, Search::Tools::RegExp::Keyword