Badger::Data::Facet::Text::Pattern3pm
Validation facet for text pattern match
Overview
This module implements a validation facets that assert that a text value matches a regular expression pattern.
Methods
This module implement the following method in addition to those inherited from the Badger::Data::Facet::Text, Badger::Data::Facet and Badger::Base base classes.
validate($text_ref, $type)
This method validates that the text passed by reference as the first argument matches the pre-defined regular expression pattern.