NAME

SparkX::Form::Field::Validator::Regex - Validates a field matches a regular expression

VERSION

version 0.2103

DESCRIPTION

A regular expression validation mix-in. Adds two fields plus action. Makes sure that value matches the expression.

ACCESSORS

regex => Str

RegexRef to match. Required, no default.

errmsg_regex => Str

Allows you to provide a custom error message for when the match fails. Required, no default.

AUTHOR

James Laver http://jameslaver.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by James Laver <sprintf qw(%s@%s.%s cpan jameslaver com)>.

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