Peter Karman > Search-Tools-0.93 > Search::Tools::RegEx

Download:
Search-Tools-0.93.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.93   Source   Latest Release: Search-Tools-1.001

NAME ^

Search::Tools::RegEx - regular expressions for terms

SYNOPSIS ^

 my $regex = $query->regex_for('foo');
 like( 'foo', $regex->plain, "matches plain (no markup)");
 like( 'foo', $regex->html,  "matches html (with markup)");
 ok( ! $regex->is_phrase, "foo is not a phrase");
 is( 'foo', $regex->term, "foo is the term");

DESCRIPTION ^

METHODS ^

plain

html

term

term_re

is_phrase

phrase_terms

If is_phrase is true, phrase_terms will contain an ARRAY ref of Search::Tools::RegEx objects, each one representing a term in the phrase.

AUTHOR ^

Peter Karman <karman@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-search-tools at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-Tools. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Search::Tools

You can also look for information at:

COPYRIGHT ^

Copyright 2009 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 ^

Search::Tools::Query

syntax highlighting: