The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Mechanize::Script::Plugin::RegexMatchTest - check for required/forbidden text via regular expression in response

VERSION

version 0.100

METHODS

check_value_names()

Returns qw(regex_forbid regex_require).

check_response(\%check,$mech)

This method checks whether any line of regex_forbid matches against received content (and accumulates regex_forbid_code into $code when match) or any line of regex_require doesn't match against content (and accumulates regex_forbid_code into $code unless match).

In case of an HTML response, the received content is rendered into plain text before searching for matches.

Return the accumulated $code and appropriate constructed message, if any match approval failed.

BUGS

Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Mechanize-Script or by email to bug-www-mechanize-script@rt.cpan.org.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Jens Rehsack <rehsack@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Jens Rehsack.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.