WWW::Mechanize::Script::Plugin::RegexMatchTest - check for required/forbidden text via regular expression in response
Returns qw(regex_forbid regex_require).
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.
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 firstname.lastname@example.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.
Jens Rehsack <email@example.com>
This software is copyright (c) 2014 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.