NAME

Test::Regex - Tests for regular expressions

VERSION

Version 0.01

EXTREMELY ALPHA

SYNOPSIS

Start of a module to do checking of captured expressions and other dollar vars.

WARNING

This is an extremely early release, just as a proof of concept to see if anyone wants to nibble on it. There's little testing on the results, and even less error checking. Please send your comments to perl-qa mailing list at lists.perl.org.

EXPORT

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

FUNCTIONS

matches_are( $str, qr/regex/ [, var1=>result1... ] [, message ] )

Lets you check the dollar vars of your results

matches_are( "dog food", qr/dog(.+)/, 1=>"food", "Matched OK" );

Eventually we'll handle the punc vars, but for now this will do.

AUTHOR

Andy Lester, <andy@petdance.com>

BUGS

Please report any bugs or feature requests to bug-test-regex@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

Matthew Weigel for the inspiration and initial brainstorming. RJBS for his naming prowess.

COPYRIGHT & LICENSE

Copyright 2004 Andy Lester, All Rights Reserved.

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