
Data::Validation::Filters - Filter data values

0.4.$Revision: 107 $

use Data::Validation::Filters;
%config = ( method => $method,
exception => q(Exception::Class),
%{ $self->filters->{ $id } || {} } );
$filter_ref = Data::Validation::Filters->new( %config );
$value = $filter_ref->filter( $value );

Applies a single filter to a data value and returns it's possibly changed value

Uses the Data::Validation::Utils Moose::Role. Defines the following attributes:
The replacement value used in regular expression search and replace operations

Calls either a builtin method or an external one to filter the data value
Should have been overridden in an external filter subclass
Replaces &<>" with their &xxx; equivalents
Lower cases the data value
Removes all non numeric characters
Matches the regular expression pattern and substitutes the replace string
Remove all leading and trailing whitespace
Upper cases the data value
Removes all whitespace

None


There are no known incompatibilities in this module

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Peter Flanigan, <Support at RoxSoft.co.uk>

Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE